You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-dev@jakarta.apache.org by jo...@locus.apache.org on 2000/05/26 20:10:52 UTC
cvs commit: jakarta-regexp/src/java/org/apache/regexp RE.java
jon 00/05/26 11:10:51
Modified: src/java/org/apache/regexp RE.java
Log:
fixed a bug that made the tests fail.
thanks to ales novak ales.novak@netbeans.com for the fix
Revision Changes Path
1.3 +2 -2 jakarta-regexp/src/java/org/apache/regexp/RE.java
Index: RE.java
===================================================================
RCS file: /home/cvs/jakarta-regexp/src/java/org/apache/regexp/RE.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- RE.java 2000/05/14 21:04:17 1.2
+++ RE.java 2000/05/26 18:10:51 1.3
@@ -347,7 +347,7 @@
* @see RECompiler
*
* @author <a href="mailto:jonl@muppetlabs.com">Jonathan Locke</a>
- * @version $Id: RE.java,v 1.2 2000/05/14 21:04:17 jon Exp $
+ * @version $Id: RE.java,v 1.3 2000/05/26 18:10:51 jon Exp $
*/
public class RE
{
@@ -962,7 +962,7 @@
int l = e - s;
// If there's not enough input left, give up.
- if (search.isEnd(idx + l))
+ if (search.isEnd(idx + l - 1))
{
return -1;
}