Skip to content

Commit 473f4ba

Browse files
committed
refactor
1 parent 27b20ae commit 473f4ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/parser/lexer.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ const longWord = allAtLeastOnce(repeatingLetter)
9090
const length = sumOf(letters, ([_, count]) => count) - word.length + 1;
9191
return { type: "long word", word, length } as const;
9292
})
93-
.filter(({ word }) => /^[a-z]/.test(word))
94-
.filter(({ length }) => length > 1);
93+
.filter(({ word, length }) => /^[a-z]/.test(word) && length > 1);
9594

9695
const alaX = memoize((word: string) =>
9796
sequence(specificWord("ala"), specificWord(word)).map(() => word)

0 commit comments

Comments
 (0)