mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-08 16:20:58 +00:00
typo
This commit is contained in:
@@ -150,7 +150,7 @@ proc runCmd(cmd, dest: string): bool =
|
||||
proc smartCompare(pattern, x: string): bool =
|
||||
let starAt = pattern.find('*')
|
||||
if starAt >= 0:
|
||||
result = x.startsWith(pattern.substr(0, starAt)) and x.endsWith(pattern.substr(starAt+1))
|
||||
result = x.startsWith(pattern.substr(0, starAt-1)) and x.endsWith(pattern.substr(starAt+1))
|
||||
else:
|
||||
result = x == pattern
|
||||
|
||||
|
||||
Reference in New Issue
Block a user