Skip to content

Commit

Permalink
正規表現を改善
Browse files Browse the repository at this point in the history
  • Loading branch information
hutinoatari committed Oct 11, 2024
1 parent 7d1110b commit ee9b0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const isJapanPoint = name => {
const regJapaneseplace = /[ぁ-ん亜-熙]/;
const regJapaneseplace = /[\p{sc=Hiragana}\p{sc=Han}]/u;
return regJapaneseplace.test(name);
}

Expand Down

0 comments on commit ee9b0da

Please sign in to comment.