jakarta-regexp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject cvs commit: jakarta-regexp/xdocs RETest.txt
Date Fri, 13 Dec 2002 18:40:16 GMT
jon         2002/12/13 10:40:16

  Modified:    docs     RETest.txt
               src/java/org/apache/regexp RECompiler.java
               xdocs    RETest.txt
  Log:
  http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3879
  
  Revision  Changes    Path
  1.7       +7 -1      jakarta-regexp/docs/RETest.txt
  
  Index: RETest.txt
  ===================================================================
  RCS file: /home/cvs/jakarta-regexp/docs/RETest.txt,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- RETest.txt	13 Dec 2002 18:23:55 -0000	1.6
  +++ RETest.txt	13 Dec 2002 18:40:16 -0000	1.7
  @@ -1060,4 +1060,10 @@
   [^ac]+
   acb
   YES
  -b
  \ No newline at end of file
  +b
  +
  +#174
  +[a-z]{0,3}
  +123abcdefg123
  +YES
  +abc
  
  
  
  1.8       +5 -1      jakarta-regexp/src/java/org/apache/regexp/RECompiler.java
  
  Index: RECompiler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-regexp/src/java/org/apache/regexp/RECompiler.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- RECompiler.java	13 Dec 2002 18:23:55 -0000	1.7
  +++ RECompiler.java	13 Dec 2002 18:40:16 -0000	1.8
  @@ -373,6 +373,10 @@
           try
           {
               bracketOpt[brackets] = Integer.parseInt(number.toString()) - bracketMin[brackets];
  +            if (bracketMin[brackets] < 1)
  +            {
  +                bracketOpt[brackets]--;
  +            }
           }
           catch (NumberFormatException e)
           {
  @@ -380,7 +384,7 @@
           }
   
           // Optional repetitions must be > 0
  -        if (bracketOpt[brackets] <= 0)
  +        if (bracketOpt[brackets] < 0)
           {
               syntaxError("Bad range");
           }
  
  
  
  1.6       +6 -0      jakarta-regexp/xdocs/RETest.txt
  
  Index: RETest.txt
  ===================================================================
  RCS file: /home/cvs/jakarta-regexp/xdocs/RETest.txt,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- RETest.txt	13 Dec 2002 18:23:55 -0000	1.5
  +++ RETest.txt	13 Dec 2002 18:40:16 -0000	1.6
  @@ -1061,3 +1061,9 @@
   acb
   YES
   b
  +
  +#174
  +[a-z]{0,3}
  +123abcdefg123
  +YES
  +abc
  
  
  

--
To unsubscribe, e-mail:   <mailto:regexp-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:regexp-dev-help@jakarta.apache.org>


Mime
View raw message