Skip to content
Snippets Groups Projects
Commit cd5e5171 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Add missing case in removePrefix

parent 9cfc836c
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,7 @@ extractPrefixArgs prefix args
removePrefix :: String -> String -> Maybe String
removePrefix "" ys = Just ys
removePrefix _ "" = Nothing
removePrefix (x:xs) (y:ys)
| x == y = removePrefix xs ys
| otherwise = Nothing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment