Skip to content

Commit

Permalink
Update m17n binary regexp match warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Apr 2, 2018
1 parent 45141a7 commit e75b913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyRegexp.java
Expand Up @@ -429,7 +429,7 @@ private Encoding prepareEncoding(RubyString str, boolean warn) {
enc = patternEnc;
}
if (warn && isEncodingNone() && enc != ASCIIEncoding.INSTANCE && cr != StringSupport.CR_7BIT) {
getRuntime().getWarnings().warn(ID.REGEXP_MATCH_AGAINST_STRING, "regexp match /.../n against to " + enc + " string");
getRuntime().getWarnings().warn(ID.REGEXP_MATCH_AGAINST_STRING, "historical binary regexp match /.../n against " + enc + " string");
}
return enc;
}
Expand Down

0 comments on commit e75b913

Please sign in to comment.