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:32:22 UTC
svn commit: r1033662 -
/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xpath/regex/RegexParser.java
Author: knoaman
Date: Wed Nov 10 19:32:22 2010
New Revision: 1033662
URL: http://svn.apache.org/viewvc?rev=1033662&view=rev
Log:
Fix for Backreference processing in RegEx.
Jira Bug: https://issues.apache.org/jira/browse/XERCESJ-1473
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xpath/regex/RegexParser.java
Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xpath/regex/RegexParser.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xpath/regex/RegexParser.java?rev=1033662&r1=1033661&r2=1033662&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xpath/regex/RegexParser.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xpath/regex/RegexParser.java Wed Nov 10 19:32:22 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