[jruby-joni] 19/31: add dont capture group option test
Hideki Yamane
henrich at moszumanska.debian.org
Sat Feb 24 10:44:59 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 0fbd4aac0a3da5fc0e1ed80d26b2341a602ddf25
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date: Fri Feb 2 18:14:35 2018 +0100
add dont capture group option test
---
test/org/joni/test/TestError.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/org/joni/test/TestError.java b/test/org/joni/test/TestError.java
index 9d681ee..5c44f91 100755
--- a/test/org/joni/test/TestError.java
+++ b/test/org/joni/test/TestError.java
@@ -73,6 +73,7 @@ public class TestError extends Test {
xerrs("[\\H- ]", ErrorMessages.ERR_UNMATCHED_RANGE_SPECIFIER_IN_CHAR_CLASS); // CVE-2017-9228
xerrs("(?:ab|cd)*\\1", ErrorMessages.ERR_INVALID_BACKREF);
+ xerrs("(ab|cd)*\\1", ErrorMessages.ERR_INVALID_BACKREF, Option.DONT_CAPTURE_GROUP);
xerrs("(.(?=\\g<1>))", ErrorMessages.ERR_NEVER_ENDING_RECURSION);
xerrs("(a)(?<n>b)\\g<1>\\g<n>", ErrorMessages.ERR_NUMBERED_BACKREF_OR_CALL_NOT_ALLOWED);
--
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