[jruby-joni] 15/223: Fix for JRUBY-2113: Regexp behavior differs a bit from MRIs.

Hideki Yamane henrich at moszumanska.debian.org
Mon Nov 16 11:21:40 UTC 2015


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 5c5c1e832e9efca64922048d6a4fea9b1648cbf4
Author: Marcin Mielżyński <lopx at gazeta.pl>
Date:   Thu Feb 14 01:06:56 2008 +0000

    Fix for JRUBY-2113: Regexp behavior differs a bit from MRIs.
    
    git-svn-id: http://svn.codehaus.org/jruby/joni/trunk@5926 961051c9-f516-0410-bf72-c9f7e237a7b7
---
 src/org/joni/Analyser.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/org/joni/Analyser.java b/src/org/joni/Analyser.java
index 2a83d1b..e5c1477 100644
--- a/src/org/joni/Analyser.java
+++ b/src/org/joni/Analyser.java
@@ -1974,7 +1974,7 @@ class Analyser extends Parser {
                     if (nopt.exb.length > 0) {
                         if (nopt.exb.reachEnd) {
                             int i;
-                            for (i=2; i<qn.lower && !opt.exb.isFull(); i++) {
+                            for (i=1; i<qn.lower && !opt.exb.isFull(); i++) {
                                 opt.exb.concat(nopt.exb, enc);
                             }
                             if (i < qn.lower) {

-- 
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