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

Add missing case in removePrefix

parent 8c291e50
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,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