Use str.len-1 rather than -1
This commit is contained in:
parent
87d6f908cc
commit
4a56ac60d9
5 changed files with 9 additions and 8 deletions
|
|
@ -139,7 +139,7 @@ proc parseVersionRange*(s: string): VersionRange =
|
|||
new(result)
|
||||
if s[0] == '#':
|
||||
result.kind = verSpecial
|
||||
result.spe = s[1 .. ^1].Special
|
||||
result.spe = s[1 .. s.len-1].Special
|
||||
return
|
||||
|
||||
var i = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue