Skip to content

Commit 5d0863e

Browse files
committed
Print out the regexp's encoding in instrumented output.
1 parent af4111f commit 5d0863e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/truffleruby/core/regexp/RegexpCacheKey.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public boolean equals(Object o) {
4848
@Override
4949
public String toString() {
5050
return '/' + RopeOperations.decodeOrEscapeBinaryRope(rope) + '/' +
51-
RegexpOptions.fromJoniOptions(joniOptions).toOptionsString();
51+
RegexpOptions.fromJoniOptions(joniOptions).toOptionsString() +
52+
" -- " + RopeOperations.decodeOrEscapeBinaryRope(encoding.name.rope);
5253
}
5354
}

0 commit comments

Comments
 (0)