This commit is contained in:
Araq
2025-11-12 23:20:44 +01:00
committed by araq
parent 8113e81139
commit 5c7c9a7396

View File

@@ -148,9 +148,10 @@ proc runCmd(cmd, dest: string): bool =
quit "unknown command: " & cmd
proc smartCompare(pattern, x: string): bool =
let p = splitLines(pattern)
let x = splitLines(x)
if p.len > x.len: return false
let p = splitLines(pattern.strip())
let x = splitLines(x.strip())
if p.len > x.len:
return false
for i in 0..p.len-1:
let starAt = p[i].find('*')
if starAt >= 0: