Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/util/RegexpSupport.java
Original file line number Diff line number Diff line change
@@ -469,7 +469,7 @@ private static int unescapeUnicodeBmp(Ruby runtime, ByteList to, byte[] bytes, i
* @param mode error mode
*/
private static void appendUtf8(Ruby runtime, ByteList to, int code, Encoding[] enc, ByteList str, ErrorMode mode) {
checkUnicodeRange(runtime, code, str, mode);
checkUnicodeRange(runtime, code, str, ErrorMode.PREPROCESS);

if (code < 0x80) {
if (to != null) Sprintf.sprintf(runtime, to, "\\x%02X", code);

0 comments on commit 8be11ed

Please sign in to comment.