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.
1 parent bec9f34 commit 2e382efCopy full SHA for 2e382ef
src/main/scala/centaur/Native2Ascii.scala
@@ -16,8 +16,8 @@ object Native2Ascii extends App {
16
val Array(head, tail@_*) = s.split( """\\u""")
17
head + tail.flatMap {
18
case str if str.length >= 4 =>
19
- val (u, normal) = str.splitAt(4)
20
- Seq(unescapeUnicodeChar(u), normal)
+ val (unicode, asciiChars) = str.splitAt(4)
+ Seq(unescapeUnicodeChar(unicode), asciiChars)
21
case str => Seq(str)
22
}.mkString
23
}.mkString( """\\""")
0 commit comments