Skip to content

Commit

Permalink
Update chinese.js
Browse files Browse the repository at this point in the history
3 symbols added:
'’-

Signed-off-by: shiki-tm <36088384+shiki-tm@users.noreply.github.com>
  • Loading branch information
shiki-tm authored Oct 4, 2024
1 parent 0c92b72 commit c63a123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/js/language/zh/chinese.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ export function isCodePointChinese(codePoint) {

/** @type {import('language').ReadingNormalizer} */
export function normalizePinyin(str) {
return str.normalize('NFC').toLowerCase().replace(/[\s・:]|\/\//g, '');
return str.normalize('NFC').toLowerCase().replace(/[\s・:'’-]|\/\//g, '');
}

0 comments on commit c63a123

Please sign in to comment.