Skip to content

Commit

Permalink
Fix regex of Japanese characters
Browse files Browse the repository at this point in the history
Closes GH-115.
Related-to: GH-114.
  • Loading branch information
verden11 committed Jan 11, 2024
1 parent ccea465 commit e19c824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,13 @@ while (++index < files.length) {
// Push Japanese.
// Unicode Kanji Table from:
// <http://www.rikai.com/library/kanjitables/kanji_codes.unicode.shtml>
const kanjiRegexSource = '[\u3400-\u4DB5\u4E00-\u9FAF]'
const kanjiRegexSource = /[\u3400-\u4DB5\u4E00-\u9FAF]/
regularExpressions.jpn = new RegExp(
expressions.Hiragana.source +
'|' +
expressions.Katakana.source +
'|' +
kanjiRegexSource,
kanjiRegexSource.source,
'g'
)

Expand Down

0 comments on commit e19c824

Please sign in to comment.