From daea654ff81a7d5b0498f0984a39ac7389e98cd7 Mon Sep 17 00:00:00 2001 From: justinsilvestre Date: Fri, 8 Dec 2023 17:17:18 +0100 Subject: [PATCH] Fix romaji helper --- app/features/dictionary/romajiHelpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/features/dictionary/romajiHelpers.ts b/app/features/dictionary/romajiHelpers.ts index 5c119a1f..7cfacaf3 100644 --- a/app/features/dictionary/romajiHelpers.ts +++ b/app/features/dictionary/romajiHelpers.ts @@ -1,7 +1,7 @@ const ROMAJI_REGEX = /^(([kstnmhgzdbpzjf]{1,2}y?|[rywj]|sh|ch|tch|cch)?[aeiouāēīōū][hnm]?[-.']?)+$/i; -const AMBIGUOUS_N = /(?<=aeiou)n(?=[aeiouy])/g; +const AMBIGUOUS_N = /(?<=[aeiou])n(?=[aeiouy])/g; export function couldBeRomaji(str: string) { return ROMAJI_REGEX.test(str);