あれ2024/10/19 14:51:00 const isJapanPoint = name => { const regJapaneseplace = /[\p{sc=Hiragana}\p{sc=Han}]/u; return regJapaneseplace.test(name); } from: 『最安経路検索』
『Unicode 文字クラスエスケープ: \p{...}, \P{...} - JavaScript | MDN』2024/10/19 14:54:00 https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Regular_expressions/Unicode_character_class_escape