fixed wildcard

alfons-task
Nathan DECHER 5 years ago
parent bda639aec7
commit f954a71e2f
  1. 2
      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

Loading…
Cancel
Save