Skip to content

RegExp for json form rules fails #87

Description

@redhead

Regular expression for creating optimized JSON form rules (for data-rules attr) fails when there are escaped unicode character sequences (it should take into account only escaped quote character).


// this one fails (FormControl.php; line 387):
$rules = preg_replace('#"([^\\\\"\']*)"#i', "'$1'", $rules);

Is there any reason to replace double quotes for single quotes, anyway??

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions