1
0
mirror of https://github.com/natnat-mc/moonbuild synced 2026-05-24 20:59:40 +02:00

fixed wildcard

This commit is contained in:
Nathan DECHER
2020-05-10 18:16:00 +02:00
parent bda639aec7
commit f954a71e2f
+1 -1
View File
@@ -88,7 +88,7 @@ wildcard= (pattern) ->
fd\close! fd\close!
return found return found
directory, prefix, suffix=pattern\match '^([^/]*)/(.*)%*(.*)$' directory, prefix, suffix=pattern\match '^(.*)/(.*)%*(.*)$'
if directory if directory
found={} found={}
for file in dir directory for file in dir directory