From 37a7f1e4ab17460c19749e6211d89ce39f37809f Mon Sep 17 00:00:00 2001 From: araq Date: Wed, 12 Nov 2025 12:27:58 +0100 Subject: [PATCH] typo --- nimsuggest/tester.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimsuggest/tester.nim b/nimsuggest/tester.nim index c0b5dbc76f..afc8c1294b 100644 --- a/nimsuggest/tester.nim +++ b/nimsuggest/tester.nim @@ -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