From 8b07fb21c1b27755b7f80bbfcbf0ba28b76bbd3d Mon Sep 17 00:00:00 2001 From: lisonge Date: Wed, 6 Dec 2023 14:12:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(selector):=20=E8=BD=AC=E4=B9=89=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E5=BA=8F=E5=88=97=E5=8C=96=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/li/songe/selector/data/BinaryExpression.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selector/src/commonMain/kotlin/li/songe/selector/data/BinaryExpression.kt b/selector/src/commonMain/kotlin/li/songe/selector/data/BinaryExpression.kt index fb669d8..8300a62 100644 --- a/selector/src/commonMain/kotlin/li/songe/selector/data/BinaryExpression.kt +++ b/selector/src/commonMain/kotlin/li/songe/selector/data/BinaryExpression.kt @@ -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)) }