[jruby-joni] 83/194: k-takata/Onigmo#96
Hideki Yamane
henrich at moszumanska.debian.org
Thu Feb 1 12:04:29 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 e97e5bf0bac9664d93fc13ac6c0d382e84cfab9c
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date: Sun Dec 31 18:34:33 2017 +0100
k-takata/Onigmo#96
---
src/org/joni/ByteCodeMachine.java | 4 ----
test/org/joni/test/TestU8.java | 10 +++++++---
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/org/joni/ByteCodeMachine.java b/src/org/joni/ByteCodeMachine.java
index f0f761f..8d031d8 100644
--- a/src/org/joni/ByteCodeMachine.java
+++ b/src/org/joni/ByteCodeMachine.java
@@ -875,7 +875,6 @@ class ByteCodeMachine extends StackMachine {
sprev = s;
s += n;
}
- sprev = sbegin; // break;
}
private void opAnyCharStarSb() {
@@ -886,7 +885,6 @@ class ByteCodeMachine extends StackMachine {
sprev = s;
s++;
}
- sprev = sbegin; // break;
}
private void opAnyCharMLStar() {
@@ -898,7 +896,6 @@ class ByteCodeMachine extends StackMachine {
sprev = s;
s += n;
}
- sprev = sbegin; // break;
}
private void opAnyCharMLStarSb() {
@@ -907,7 +904,6 @@ class ByteCodeMachine extends StackMachine {
sprev = s;
s++;
}
- sprev = sbegin; // break;
}
private void opAnyCharStarPeekNext() {
diff --git a/test/org/joni/test/TestU8.java b/test/org/joni/test/TestU8.java
index 77a6f13..d8afb03 100755
--- a/test/org/joni/test/TestU8.java
+++ b/test/org/joni/test/TestU8.java
@@ -91,9 +91,6 @@ public class TestU8 extends Test {
x2s("\\A\\R\\z", "\n", 0, 1);
x2s("\\A\\R\\z", "\r\n", 0, 2);
- ns("x.*\\b", "x");
- x2s("x.*\\B", "x", 0, 1);
-
x2s("foo\\b", "foo", 0, 3);
x2s("(x?)x*\\1", "x", 0, 1, Option.IGNORECASE);
@@ -256,6 +253,13 @@ public class TestU8 extends Test {
ns("(?ia)[[:lower:]]", "\u017f");
x2s("(?u)[[:upper:]]", "\u212a", 0, 3);
ns("(?a)[[:upper:]]", "\u212a");
+
+ // ns("x.*\\b", "x");
+ // x2s("x.*\\B", "x", 0, 1);
+ x2s("c.*\\b", "abc", 2, 3); // Onigmo #96
+ x2s("abc.*\\b", "abc", 0, 3);
+ x2s("\\b.*abc.*\\b", "abc", 0, 3);
+
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