X Tutup
Skip to content

Commit 372418c

Browse files
author
cancerbero_sgx
committed
1 parent 35440e8 commit 372418c

File tree

1 file changed

+1
-1
lines changed
  • sources/net.sf.j2s.java.core/src/java/util/regex

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.java.core/src/java/util/regex/Matcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ public Matcher usePattern(Pattern pat) {
608608
// this.start = pat.start;
609609
this.string = cs;
610610
this.leftBound = 0;
611-
this.rightBound = string.length();
611+
this.rightBound = string.toString().length();// sgurin: replaced this.rightBound = string.length();
612612
// matchResult = new MatchResultImpl(cs, leftBound, rightBound, pat
613613
// .groupCount(), pat.compCount(), pat.consCount());
614614
}

0 commit comments

Comments
 (0)
X Tutup