summaryrefslogtreecommitdiff
path: root/script/file-uri.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/file-uri.lua')
-rw-r--r--script/file-uri.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/file-uri.lua b/script/file-uri.lua
index 88e1111a..f9ede668 100644
--- a/script/file-uri.lua
+++ b/script/file-uri.lua
@@ -92,6 +92,10 @@ function m.split(uri)
return uri:match('([^:]*):/?/?([^/]*)(.*)')
end
+function m.isValid(uri)
+ return m.split(uri) ~= nil
+end
+
function m.normalize(uri)
if uri == '' then
return uri