mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 11:42:22 +08:00
fix(selector): 转义字符序列化错误
This commit is contained in:
parent
36bac5d765
commit
8b07fb21c1
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user