diff options
Diffstat (limited to 'gnu/regexp/RETokenLookBehind.java')
-rw-r--r-- | gnu/regexp/RETokenLookBehind.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/regexp/RETokenLookBehind.java b/gnu/regexp/RETokenLookBehind.java index 60058188d..8311d1a7a 100644 --- a/gnu/regexp/RETokenLookBehind.java +++ b/gnu/regexp/RETokenLookBehind.java @@ -65,6 +65,7 @@ final class RETokenLookBehind extends REToken int diff = behind.length() - input.length(); int curIndex = trymatch.index + diff; trymatch.index = 0; + trymatch.offset = 0; RETokenMatchHereOnly stopper = new RETokenMatchHereOnly(curIndex); REToken re1 = (REToken) re.clone(); re1.chain(stopper); @@ -79,6 +80,7 @@ final class RETokenLookBehind extends REToken } } trymatch.index = mymatch.index; + trymatch.offset = mymatch.offset; return trymatch; } else { |