parsing error with > in PHP filter

Issue #414 resolved
Former user created an issue

Original issue 414 created by @ysavourel on 2014-08-24T14:46:27.000Z:

I think I found a bug.

In the following text:

introAnswer3 = 'The utilisation of the vSGP may be limited due to specific constraints such as occurrence of hard rock, protection zones, unsuitable soil types or a slope > 15°.

Everything after the first single quote character until the greater than character (included) is marked as an inline non-translatable part.

Reference: https://groups.yahoo.com/neo/groups/okapitools/conversations/messages/4351

Comments (2)

  1. Chase Tingley

    Denis is looking at this.

    The problem has to do with the default rule for the inline code finder:

    (\A[^<]*?>)|(<[\w!?/].*?(>|\Z))
    

    This interprets the standalone '>' as the end of a partial tag and everything before it as part of the tag data.

    The suggested fix is to make that regex more restrictive.

  2. Log in to comment