From 321346117a1b6d0b2f520d0ac7b983a9f5285ea5 Mon Sep 17 00:00:00 2001 From: Cashew <52880648+cashewnuttynuts@users.noreply.github.com> Date: Mon, 15 Jul 2024 15:29:01 +0700 Subject: [PATCH] remove hyphen and apostrophe (#113) --- 4-make-yomitan.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/4-make-yomitan.js b/4-make-yomitan.js index aef31a6..a9629f4 100644 --- a/4-make-yomitan.js +++ b/4-make-yomitan.js @@ -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':