Skip to content

Commit

Permalink
Merge pull request #109 from scalameta/ticket/108
Browse files Browse the repository at this point in the history
  • Loading branch information
olafurpg authored Apr 20, 2020
2 parents 53e8379 + e367f1a commit f61429f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ object AnsiColors {
if (s == null) {
null
} else {
var r: String = ""
val len = s.length
val r = new java.lang.StringBuilder(len)
var i = 0
while (i < len) {
val c = s.charAt(i)
if (c == '\u001B') {
i += 1
while (i < len && s.charAt(i) != 'm') i += 1
} else {
r += c
r.append(c)
}
i += 1
}
r
r.toString()
}
}

Expand Down

0 comments on commit f61429f

Please sign in to comment.