Fix back-reference parsing from going too far in source string
git-svn-id: svn://10.0.0.236/trunk@52757 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1142,6 +1142,7 @@ public class NativeRegExp extends ScriptableObject implements Function {
|
||||
num = 10 * num + unDigit(c);
|
||||
len++;
|
||||
}
|
||||
index--;
|
||||
ren = new RENode(state, REOP_BACKREF, null);
|
||||
ren.num = num - 1; /* \1 is numbered 0, etc. */
|
||||
/* Avoid common chr- and flags-setting
|
||||
|
||||
@@ -1142,6 +1142,7 @@ public class NativeRegExp extends ScriptableObject implements Function {
|
||||
num = 10 * num + unDigit(c);
|
||||
len++;
|
||||
}
|
||||
index--;
|
||||
ren = new RENode(state, REOP_BACKREF, null);
|
||||
ren.num = num - 1; /* \1 is numbered 0, etc. */
|
||||
/* Avoid common chr- and flags-setting
|
||||
|
||||
Reference in New Issue
Block a user