parent
843e426a2e
commit
45f8f1928a
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ matchTerms (MatchAny:ts) cs = matchAny cs >>= matchTerms ts
|
||||||
where matchAny [] = fail "no match"
|
where matchAny [] = fail "no match"
|
||||||
matchAny cs' = case matchTerms ts cs' of
|
matchAny cs' = case matchTerms ts cs' of
|
||||||
Nothing -> matchAny (tail cs')
|
Nothing -> matchAny (tail cs')
|
||||||
_ -> return cs
|
_ -> return cs'
|
||||||
matchTerms [MatchDir] cs | pathSeparator `elem` cs = fail "path separator"
|
matchTerms [MatchDir] cs | pathSeparator `elem` cs = fail "path separator"
|
||||||
| otherwise = return ()
|
| otherwise = return ()
|
||||||
matchTerms (MatchDir:ts) cs = matchDir cs >>= matchTerms ts
|
matchTerms (MatchDir:ts) cs = matchDir cs >>= matchTerms ts
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue