From 1e894e22c7c45e3e50fc11b3e20c34b968a12667 Mon Sep 17 00:00:00 2001 From: Cashew Date: Mon, 15 Jul 2024 14:07:04 +0700 Subject: [PATCH] remove hyphen and apostrophe --- 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':