We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27b20ae commit 473f4baCopy full SHA for 473f4ba
src/parser/lexer.ts
@@ -90,8 +90,7 @@ const longWord = allAtLeastOnce(repeatingLetter)
90
const length = sumOf(letters, ([_, count]) => count) - word.length + 1;
91
return { type: "long word", word, length } as const;
92
})
93
- .filter(({ word }) => /^[a-z]/.test(word))
94
- .filter(({ length }) => length > 1);
+ .filter(({ word, length }) => /^[a-z]/.test(word) && length > 1);
95
96
const alaX = memoize((word: string) =>
97
sequence(specificWord("ala"), specificWord(word)).map(() => word)
0 commit comments