[jruby-joni] 45/279: Allow "invalid" quantifiers in non-vanilla mode.

Hideki Yamane henrich at moszumanska.debian.org
Mon Nov 16 11:26: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 4b3287d4b86a1f5601bdff9903d3c53ade6d09aa
Author: Marcin Mielżyński <lopx at gazeta.pl>
Date:   Sun Nov 30 16:56:37 2008 +0000

    Allow "invalid" quantifiers in non-vanilla mode.
    
    git-svn-id: http://svn.codehaus.org/jruby/joni/trunk@8216 961051c9-f516-0410-bf72-c9f7e237a7b7
---
 src/org/joni/ast/Node.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/org/joni/ast/Node.java b/src/org/joni/ast/Node.java
index 73bedd5..eef7790 100644
--- a/src/org/joni/ast/Node.java
+++ b/src/org/joni/ast/Node.java
@@ -91,10 +91,12 @@ public abstract class Node implements NodeType {
     }
     
     public final boolean isInvalidQuantifier() {
+        if (!Config.VANILLA) return false;
+
         ConsAltNode node;
-        
+
         switch(getType()) {
-        
+
         case ANCHOR:
             return true;
             

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