mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
Fix back-reference parsing from going too far in source string
This commit is contained in:
parent
dc6e27e8c1
commit
5d229c958c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user