Skip to content

Commit 7b25e66

Browse files
committed
fix
1 parent 948f487 commit 7b25e66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser/lexer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const cartoucheElement = choiceOnlyOne(
122122
.map(([word, dots]) => {
123123
const count = /^[aeiou]/.test(word) ? dots + 1 : dots;
124124
const morae = word.match(/[jklmnpstw]?[aeiou]|n/g)!;
125-
if (count < morae.length) {
125+
if (count <= morae.length) {
126126
return morae.slice(0, count).join("");
127127
} else {
128128
throw new UnrecognizedError("excess dots");

0 commit comments

Comments
 (0)