From f954a71e2f8363401534606b124c10ed7e2f93df Mon Sep 17 00:00:00 2001 From: Nathan DECHER Date: Sun, 10 May 2020 18:16:00 +0200 Subject: [PATCH] fixed wildcard --- util.moon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.moon b/util.moon index 07ca90c..171fee0 100644 --- a/util.moon +++ b/util.moon @@ -88,7 +88,7 @@ wildcard= (pattern) -> fd\close! return found - directory, prefix, suffix=pattern\match '^([^/]*)/(.*)%*(.*)$' + directory, prefix, suffix=pattern\match '^(.*)/(.*)%*(.*)$' if directory found={} for file in dir directory