Skip to content

Commit

Permalink
Merge pull request #157 from nhnacademy-be4-My-Books/feature/elastic_…
Browse files Browse the repository at this point in the history
…search

refactor: 띄어쓰기 검색 가능하도록 수정
  • Loading branch information
newjaehun authored Mar 25, 2024
2 parents c159fcf + 0eab525 commit 3835e21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
alert('검색어를 입력하세요');
event.preventDefault();
}
if (/[^a-zA-Z0-9---]/.test(input)) {
if (/[^a-zA-Z0-9---\s]/.test(input)) {
alert('한글, 영문, 숫자만 입력할 수 있습니다');
event.preventDefault();
}
Expand Down

0 comments on commit 3835e21

Please sign in to comment.