diff options
Diffstat (limited to 'script/file-uri.lua')
-rw-r--r-- | script/file-uri.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/script/file-uri.lua b/script/file-uri.lua index 7f3e36a8..ccd47156 100644 --- a/script/file-uri.lua +++ b/script/file-uri.lua @@ -94,4 +94,8 @@ function m.decode(uri) return value end +function m.split(uri) + return uri:match('([^:]*):?/?/?([^/]*)(.*)') +end + return m |