Chromium Code Reviews
Description* Modified RegExp parser to handle bad \c, \x, \u and decimal escapes gracefully.
if the escape sequence is not valid, the \c, \x or \u are treated as identity escapes (i.e., "c", "x", or "u").
Decimal escapes that are larger than the *current* number of left capture parentheses are treated as 1..3 digit octal numbers, and \8 and \9 are treated as identity escapes.
* Added multiline_flag to regexp parser.
Please ignore first two patch-sets. Third time is the charm.
Patch Set 1 #Patch Set 2 : RegExp handling of escapes. #Patch Set 3 : RegExp escape handling #Patch Set 4 : RegExp escape handling, with review comments. #Messages
Total messages: 1 (0 generated)
|