From 2464f6b443010ad4c75b9e4237b23fb6fd352f93 Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Wed, 16 Sep 2026 15:15:30 +0900 Subject: [PATCH] =?UTF-8?q?260916=5F01=5FENH:=20SID=20=EA=B2=80=EC=83=89?= =?UTF-8?q?=20=EC=8B=9C=20=EB=AC=B8=EC=9E=90=20SID=20=ED=97=88=EC=9A=A9=20?= =?UTF-8?q?(=ED=8B=B8=EB=93=9C=20=EB=B2=94=EC=9C=84=EB=8A=94=20=EC=88=AB?= =?UTF-8?q?=EC=9E=90=EB=A7=8C=20=EC=9C=A0=EC=A7=80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/list/ListSearchTable.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/list/ListSearchTable.tsx b/src/components/list/ListSearchTable.tsx index acadb83..26d0a00 100644 --- a/src/components/list/ListSearchTable.tsx +++ b/src/components/list/ListSearchTable.tsx @@ -83,7 +83,7 @@ const deduplicateSidInput = (value: string) => [...new Set(toSidSet(value))].joi const sanitizeSidInput = (value: string) => { let result = '' - let lastChar: 'digit' | 'comma' | 'tilde' | null = null + let lastChar: 'digit' | 'char' | 'comma' | 'tilde' | null = null let segmentHasTilde = false for (const ch of value) { @@ -93,7 +93,15 @@ const sanitizeSidInput = (value: string) => { continue } - if (ch === ',' && lastChar === 'digit') { + if (/[a-zA-Z_-]/.test(ch)) { + // 틸드 범위 검색은 숫자끼리만 허용되므로, 틸드 바로 뒤에는 문자를 붙이지 않는다. + if (lastChar === 'tilde') continue + result += ch + lastChar = 'char' + continue + } + + if (ch === ',' && (lastChar === 'digit' || lastChar === 'char')) { result += ch lastChar = 'comma' segmentHasTilde = false