You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by kn...@apache.org on 2010/11/10 20:31:44 UTC
svn commit: r1033661 -
/xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/RegexParser.java
Author: knoaman
Date: Wed Nov 10 19:31:44 2010
New Revision: 1033661
URL: http://svn.apache.org/viewvc?rev=1033661&view=rev
Log:
Fix for Backreference processing in RegEx.
Jira Bug: https://issues.apache.org/jira/browse/XERCESJ-1473
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/RegexParser.java
Modified: xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/RegexParser.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/RegexParser.java?rev=1033661&r1=1033660&r2=1033661&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/RegexParser.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/RegexParser.java Wed Nov 10 19:31:44 2010
@@ -471,7 +471,7 @@ class RegexParser {
while (this.offset + 1 < this.regexlen) {
ch = this.regex.charAt(this.offset + 1);
- if ('1' <= ch && ch <= '9') {
+ if ('0' <= ch && ch <= '9') {
refno = (refno * 10) + (ch - '0');
if (refno < this.parennumber) {
finalRefno= refno;
@@ -604,7 +604,7 @@ class RegexParser {
while (this.offset < this.regexlen) {
final int ch = this.regex.charAt(this.offset);
- if ('1' <= ch && ch <= '9') {
+ if ('0' <= ch && ch <= '9') {
refnum = (refnum * 10) + (ch - '0');
if (refnum < this.parennumber) {
++this.offset;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org