[jruby-joni] 30/194: fix folded chars in look-behind
Hideki Yamane
henrich at moszumanska.debian.org
Thu Feb 1 12:04:13 UTC 2018
This is an automated email from the git hooks/post-receive script.
henrich pushed a commit to branch debian/sid
in repository jruby-joni.
commit f8bb3d01b0776bca10a276f2873de68a16f1a976
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date: Tue Dec 26 18:22:38 2017 +0100
fix folded chars in look-behind
---
src/org/joni/Analyser.java | 2 ++
test/org/joni/test/TestU8.java | 1 +
2 files changed, 3 insertions(+)
diff --git a/src/org/joni/Analyser.java b/src/org/joni/Analyser.java
index ddb0f5c..c941534 100644
--- a/src/org/joni/Analyser.java
+++ b/src/org/joni/Analyser.java
@@ -1950,6 +1950,7 @@ final class Analyser extends Parser {
node = setupLookBehind(node);
if (node.getType() != NodeType.ANCHOR) continue restart;
setupTree(((AnchorNode)node).target, state);
+ node = setupLookBehind(node);
break;
case AnchorType.LOOK_BEHIND_NOT:
@@ -1957,6 +1958,7 @@ final class Analyser extends Parser {
node = setupLookBehind(node);
if (node.getType() != NodeType.ANCHOR) continue restart;
setupTree(((AnchorNode)node).target, (state | IN_NOT));
+ node = setupLookBehind(node);
break;
} // inner switch
diff --git a/test/org/joni/test/TestU8.java b/test/org/joni/test/TestU8.java
index 7faa1e1..e6458c2 100755
--- a/test/org/joni/test/TestU8.java
+++ b/test/org/joni/test/TestU8.java
@@ -169,6 +169,7 @@ public class TestU8 extends Test {
x2s("(?i)\ufb01", "fi", 0, 2);
x2s("(?i)\u0149\u0149", "\u0149\u0149", 0, 4);
+ x2s("(?i)(?<=\u0149)a", "\u02bcna", 3, 4);
super.test();
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jruby-joni.git
More information about the pkg-java-commits
mailing list