Skip to content

Commit

Permalink
fix(selector): 转义字符序列化错误
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Dec 6, 2023
1 parent 36bac5d commit 8b07fb2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ data class BinaryExpression(val name: String, val operator: CompareOperator, val
'\r' -> 'r'
'\t' -> 't'
'\b' -> 'b'
'\\' -> '\\'
else -> null
}
if (escapeChar != null) {
sb.append("\\" + escapeChar)
} else {
when (c.code) {
in 0..9 -> {
in 0..0xf -> {
sb.append("\\x0" + c.code.toString(16))
}
Expand Down

0 comments on commit 8b07fb2

Please sign in to comment.