Skip to content

Commit

Permalink
fix word bound regression
Browse files Browse the repository at this point in the history
  • Loading branch information
lopex committed Oct 20, 2015
1 parent 0000447 commit 5a80b95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/joni/ByteCodeMachine.java
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ private void opWordBound() {
if (s == str) {
if (s >= range || !enc.isMbcWord(bytes, s, end)) {opFail(); return;}
} else if (s == end) {
if (s >= range || !enc.isMbcWord(bytes, sprev, end)) {opFail(); return;}
if (sprev >= end || !enc.isMbcWord(bytes, sprev, end)) {opFail(); return;}
} else {
if (enc.isMbcWord(bytes, s, end) == enc.isMbcWord(bytes, sprev, end)) {opFail(); return;}
}
Expand Down

0 comments on commit 5a80b95

Please sign in to comment.