Skip to content

Commit

Permalink
remove hyphen and apostrophe (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
Casheeew authored Jul 15, 2024
1 parent aa10835 commit 3213461
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 4-make-yomitan.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,9 @@ function normalizeOrthography(term) {
case 'sga':
case 'grc':
case 'ro':
case 'tl':
return term.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
case 'tl':
return term.normalize('NFD').replace(/[\u0300-\u036f\-']/g, '');
case 'sh':
return term.normalize('NFD').replace(/[aeiourAEIOUR][\u0300-\u036f]/g, (match) => match[0]);
case 'uk':
Expand Down

0 comments on commit 3213461

Please sign in to comment.