We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9400427 commit 5efa831Copy full SHA for 5efa831
src/main/java/org/truffleruby/core/regexp/RegexpNodes.java
@@ -211,8 +211,7 @@ public abstract static class QuoteNode extends CoreMethodArrayArgumentsNode {
211
@Specialization(guards = "isRubyString(raw)")
212
protected DynamicObject quoteString(DynamicObject raw) {
213
final Rope rope = StringOperations.rope(raw);
214
- boolean isAsciiOnly = rope.getEncoding().isAsciiCompatible() && rope.getCodeRange() == CodeRange.CR_7BIT;
215
- return getMakeStringNode().fromRope(ClassicRegexp.quote19(rope, isAsciiOnly));
+ return getMakeStringNode().fromRope(ClassicRegexp.quote19(rope, rope.isAsciiOnly()));
216
}
217
218
@Specialization(guards = "isRubySymbol(raw)")
0 commit comments