Skip to content

Commit

Permalink
Fix romaji helper
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsilvestre committed Dec 8, 2023
1 parent d656f5c commit daea654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/features/dictionary/romajiHelpers.ts
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit daea654

Please sign in to comment.