diff options
Diffstat (limited to 'Utils.hs')
| -rw-r--r-- | Utils.hs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -40,3 +40,9 @@ walkURLs f = Text.Pandoc.Walk.walkM go u' <- T.pack <$> f (T.unpack u) pure $ Image a i (u', t) go x = pure x + +hasUriScheme :: String -> String -> Bool +hasUriScheme x = all id . zipWith (==) x . (++ ":") + +unAbsolute :: String -> String +unAbsolute = dropWhile (== '/') |
