From 8e6926a14bd8bc067d0f4bfc8653741133260bb5 Mon Sep 17 00:00:00 2001 From: "hehihoho3@gmail.com" Date: Thu, 30 Jul 2026 10:56:27 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=8C=93=EA=B8=80=20=EC=B9=B4=EB=93=9C?= =?UTF-8?q?=20=EC=A0=9C=EC=99=B8=20=EB=8B=A8=EC=96=B4=EB=8F=84=20=EC=89=BC?= =?UTF-8?q?=ED=91=9C=20=EA=B5=AC=EB=B6=84=20+=20=EA=B2=80=EC=83=89?= =?UTF-8?q?=EB=B3=B4=EB=8B=A4=20=EC=9A=B0=EC=84=A0=20=EB=AA=85=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 제외 단어 구분자를 검색어와 동일하게 쉼표만으로 통일했다. 공백이 구분자가 아니게 되어 구절 단위 제외가 가능하다. 제외 단어에 걸린 댓글은 검색·필터보다 먼저 걸러져 카드와 분석 모두에서 무조건 빠진다. Co-Authored-By: Claude Opus 5 (1M context) --- src/main/resources/static/js/comment-cards.js | 5 +++-- src/main/resources/templates/comment-cards.html | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/resources/static/js/comment-cards.js b/src/main/resources/static/js/comment-cards.js index 66d410a..7c39563 100644 --- a/src/main/resources/static/js/comment-cards.js +++ b/src/main/resources/static/js/comment-cards.js @@ -56,10 +56,11 @@ return null; } - // 제외 단어: 쉼표/공백으로 구분. 하나라도 포함된 댓글은 카드·분석 모두에서 제외. + // 제외 단어: 쉼표로 구분(검색어와 동일 규칙). 하나라도 포함되면 검색어와 무관하게 카드·분석 모두에서 제외. + // 공백은 구분자가 아니므로 "정말 재밌"처럼 구절 단위 제외도 가능. function getExcludeTerms() { const raw = ($('ccExclude') && $('ccExclude').value) || ''; - return raw.split(/[,\s]+/).map(s => s.trim().toLowerCase()).filter(Boolean); + return raw.split(',').map(s => s.trim().toLowerCase()).filter(Boolean); } // 검색어: 쉼표로 구분하면 OR 검색(하나라도 포함되면 표시). 공백은 구분자가 아님 → 구절 검색 유지. function getSearchTerms() { diff --git a/src/main/resources/templates/comment-cards.html b/src/main/resources/templates/comment-cards.html index c273d16..4ba6951 100644 --- a/src/main/resources/templates/comment-cards.html +++ b/src/main/resources/templates/comment-cards.html @@ -140,7 +140,8 @@