diff --git a/tests/projects/tasks/tasks.nimble b/tests/projects/tasks/tasks.nimble index 7f3554e..956b0ee 100644 --- a/tests/projects/tasks/tasks.nimble +++ b/tests/projects/tasks/tasks.nimble @@ -17,4 +17,7 @@ task helloWorld, "hello world": echo "hello world" task anotherTask, "Another task": - echo "another task" \ No newline at end of file + echo "another task" + +task anotherTask2, "Another task 2": + echo "another task 2" diff --git a/tests/textensions.nim b/tests/textensions.nim index 5f8de62..871fa48 100644 --- a/tests/textensions.nim +++ b/tests/textensions.nim @@ -75,6 +75,6 @@ suite "Nimlangserver": seq[NimbleTask] ) - check tasks.len == 2 + check tasks.len == 3 check tasks[0].name == "helloWorld" check tasks[0].description == "hello world" diff --git a/utils.nim b/utils.nim index eecbc76..d9e3e59 100644 --- a/utils.nim +++ b/utils.nim @@ -328,7 +328,7 @@ proc getNextFreePort*(): Port = func isWord*(str: string): bool = var str = str.toLower() for c in str: - if c.int notin 97 .. 122: + if c.int notin {48..57, 97..122}: # Allow 0-9 and a-z return false return true