[jruby-joni] 158/194: turn off one char class
Hideki Yamane
henrich at moszumanska.debian.org
Thu Feb 1 12:04:37 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 54416b9af3ccd439d87cd935e27e348f26b22830
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date: Thu Jan 11 22:40:39 2018 +0100
turn off one char class
---
src/org/joni/Parser.java | 2 +-
test/org/joni/test/TestA.java | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/org/joni/Parser.java b/src/org/joni/Parser.java
index 14dbb8c..7922ae1 100644
--- a/src/org/joni/Parser.java
+++ b/src/org/joni/Parser.java
@@ -1471,7 +1471,7 @@ class Parser extends Lexer {
Node node = cc;
int code = cc.isOneChar();
- if (code != -1) {
+ if (false) {
StringNode sn = new StringNode();
sn.catCode(code, enc);
return parseStringLoop(sn, group);
diff --git a/test/org/joni/test/TestA.java b/test/org/joni/test/TestA.java
index 1e3a1d9..a01a6af 100644
--- a/test/org/joni/test/TestA.java
+++ b/test/org/joni/test/TestA.java
@@ -534,5 +534,9 @@ public class TestA extends Test {
x2s("\\X{5}", "ăăab\n", 0, 5);
x2s("\\X{5}", "あいab\n", 0, 5);
x2s("(?<=a).*b", "aab", 1, 3);
+
+ x2s("([.])", ".", 0, 1);
+ x2s("([a])", "a", 0, 1);
+ x2s("([\\w])", "a", 0, 1);
}
}
--
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