Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
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).
Is there any reason to replace double quotes for single quotes, anyway??
It's still buggy - try using a quote not followed by an comma in the rule's message. It will result in something like this:
Therefore, it's necessary to check the character before the first quote. So you can