Commit 83218fca authored by Bas Lijnse's avatar Bas Lijnse

Fixed catchall rule in filecollection extension

parent d9e75bb2
Pipeline #35758 passed with stage
in 6 minutes and 46 seconds
......@@ -183,6 +183,9 @@ where
= match pattern (ppos + 3) input ipos intermediate
//.. or we try to match starting after the next slash
|| maybe False (\ipos -> match pattern ppos input ipos intermediate) (nextDir input ipos)
//Special case: pattern ends with '**' accept everything
| ppos + 2 == size pattern && pattern.[ppos] == '*' && pattern.[ppos + 1] == '*'
= True
//Special case: '*' match any number of characters (but not '/')
| pattern.[ppos] == '*'
//Don't match any more characters
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment