Skip to content

Commit

Permalink
Support m coda in underdot normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
lynn committed Nov 21, 2023
1 parent 2931236 commit c7827aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/shared/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function normalize(s: string, trim?: boolean): string {
.map(w =>
w
.replace(
/(['ʼx-]*)([^aeiouq\u0300-\u036f'ʼ0-9x]*)([aeiou])([\u0323]?)([\u0300-\u036f]?)([\u0323]?)([aeiou]*(?![\u0300-\u036f])q?)([0-8]*)(?=(-.)?)/gi,
/(['ʼx-]*)([^aeiouq\u0300-\u036f'ʼ0-9x]*)([aeiou])([\u0323]?)([\u0300-\u036f]?)([\u0323]?)([aeiou]*(?![\u0300-\u036f])[qm]?)([0-8]*)(?=(-.)?)/gi,
(
_,
_apo,
Expand Down

0 comments on commit c7827aa

Please sign in to comment.