diff options
| Commit | 8e9fcf5323a5089ac889115f2ba055d69afe72d4 (patch) | |
|---|---|---|
| Author | 2025-11-01 17:19:09 +0200 | |
| Committer | 2025-11-01 17:19:09 +0200 | |
| Files | 4423fec1142862b41ba5f5ecc9f4b390676c78e5 /src | |
| cool-self-hosted-8e9fcf5323a5089ac889115f2ba055d69afe72d4.tar cool-self-hosted-8e9fcf5323a5089ac889115f2ba055d69afe72d4.tar.gz cool-self-hosted-8e9fcf5323a5089ac889115f2ba055d69afe72d4.zip | ||
| Parent | 3172ed46d85a1aee2eb82b1aeb530ade1ffc7aa4 (diff) | |
fix(StringConsumer): No runtime error in words consumer when start is too large
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | src/StringConsumer/IWordsConsumer.cl | 2 |
diff --git a/src/StringConsumer/IWordsConsumer.cl b/src/StringConsumer/IWordsConsumer.cl index cdd0186..4c184bf 100644 --- a/src/StringConsumer/IWordsConsumer.cl +++ b/src/StringConsumer/IWordsConsumer.cl @@ -36,7 +36,7 @@ class WordList inherits System { }}; any_starts(s: String, start: Int) : Int { - if word = "" + if or(word = "", s.length() <= start) then 0 else if s.substr(start, word.length()) = word then word.length() |
