Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/main/java/org/jruby/RubyRegexp.java
100644 → 100755
Original file line number Diff line number Diff line change
@@ -648,6 +648,10 @@ static ByteList quote(ByteList bs, boolean asciiOnly) {
c = bytes[p] & 0xff;
} else {
cl = StringSupport.preciseLength(enc, bytes, p, end);
if (cl < 0) {
p += StringSupport.length(enc, bytes, p, end);
continue;
}
c = enc.mbcToCode(bytes, p, end);
}

0 comments on commit 0c7f44a

Please sign in to comment.