[jruby-joni] 38/279: Yikes, how is it possible this haven't shown up yet...

Hideki Yamane henrich at moszumanska.debian.org
Mon Nov 16 11:26:37 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 6b0ecb1d400fd6ea63c1e86a32dd9de3226752d0
Author: Marcin Mielżyński <lopx at gazeta.pl>
Date:   Thu Sep 25 23:36:05 2008 +0000

    Yikes, how is it possible this haven't shown up yet...
    
    git-svn-id: http://svn.codehaus.org/jruby/joni/trunk@7782 961051c9-f516-0410-bf72-c9f7e237a7b7
---
 src/org/joni/Regex.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/org/joni/Regex.java b/src/org/joni/Regex.java
index 41820df..1e00453 100644
--- a/src/org/joni/Regex.java
+++ b/src/org/joni/Regex.java
@@ -225,8 +225,8 @@ public final class Regex implements RegexState {
         case 1:
             return e.backRef1;
         default:
-            if (region == null) {
-                for (int i = e.backNum - 1; i>=0; i--) {
+            if (region != null) {
+                for (int i = e.backNum - 1; i >= 0; i--) {
                     if (region.beg[e.backRefs[i]] != Region.REGION_NOTPOS) return e.backRefs[i];
                 }
             } 

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