Summary Files Commits Branches @commit @diff @stats
path: root / src / StringConsumer
diff options
context:
space:
mode:
1 files changed, 1 insertions, 1 deletions
-rw-r--r--src/StringConsumer/IWordsConsumer.cl2
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()