8000
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.
Formatter
RegexEngineTest
1 parent dd3330a commit eae9211Copy full SHA for eae9211
test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/util/regex/RegexEngineTest.scala
@@ -54,11 +54,12 @@ class RegexEngineTest {
54
55
private def debugEscape(pattern: String): String = {
56
pattern.flatMap {
57
- case '\t' => "`t"
58
- case '\n' => "`n"
59
- case '\r' => "`r"
60
- case c if c < ' ' => "`x%02X".format(c.toInt)
61
- case c => c.toString()
+ case '\t' => "`t"
+ case '\n' => "`n"
+ case '\r' => "`r"
+ case c if c < 0x10 => "`x0" + c.toInt.toHexString
+ case c if c < ' ' => "`x" + c.toInt.toHexString
62
+ case c => c.toString()
63
}
64
65
0 commit comments