Skip to content

Commit

Permalink
nhaq :3
Browse files Browse the repository at this point in the history
  • Loading branch information
lynn committed Sep 2, 2023
1 parent ab6eca1 commit 37dab8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tokenize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function tone(word: string): Tone {
function splitIntoRaku(word: string): string[] {
return [
...word.matchAll(
/(b|c|ch|d|f|g|h|j|k|l|m|n|p|r|s|sh|t|vy?|wy?|ꝡ|y|z|')?[aeiıou]\p{Diacritic}?[aeiıou]*(q|m(?![aeiıou]))?-?/giu,
/(b|c|ch|d|f|g|h|j|k|l|m|n|nh|p|r|s|sh|t|vy?|wy?|ꝡ|y|z|')?[aeiıou]\p{Diacritic}?[aeiıou]*(q|m(?![aeiıou]))?-?/giu,
),
].map(m => {
return m[0];
Expand Down

0 comments on commit 37dab8b

Please sign in to comment.