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! 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

Loading…
Cancel
Save