diff --git a/cetodo/cetodo.d b/cetodo/cetodo.d index 269c34e2..6f1de5ee 100644 --- a/cetodo/cetodo.d +++ b/cetodo/cetodo.d @@ -161,11 +161,13 @@ void main(string[] args) // "TODO" while (true) { if (pos == text.length) break; - auto upIdent = identifier.strip.toUpper; - if (upIdent == "TODO" || upIdent == "FIXME"){ - isTodoComment = true; - text = text[pos..$]; - break; + if (identifier.length > 3) { + auto upIdent = identifier.strip.toUpper; + if (upIdent == "TODO" || upIdent == "FIXME"){ + isTodoComment = true; + text = text[pos..$]; + break; + } } identifier ~= text[pos++]; }