diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2021-01-20 16:19:53 +0100 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2021-01-20 16:19:53 +0100 |
| commit | 1fb21f48a27370ee342415753df8ff6ab2f0cab3 (patch) | |
| tree | bd5380660336693e2b7578296190fe2887d1417a /src | |
| parent | 2b9dde9862ca560c24a81119854d2d193643c186 (diff) | |
fix crash
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/documents.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/documents.odin b/src/server/documents.odin index 383b40b..1b5b207 100644 --- a/src/server/documents.odin +++ b/src/server/documents.odin @@ -405,7 +405,7 @@ parse_document :: proc(document: ^Document, config: ^common.Config) -> ([] Parse for imp, index in document.ast.imports { //collection specified - if i := strings.index(imp.fullpath, ":"); i != -1 && i > 1 { + if i := strings.index(imp.fullpath, ":"); i != -1 && i > 1 && i < len(imp.fullpath) { if len(imp.fullpath) < 2 { continue; |