Skip to content

Commit 267282a

Browse files
authored
fix: is_uri not accept all valid schemas (#500)
1 parent 1a6a7c9 commit 267282a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/plenary/path.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ local _split_by_separator = (function()
7373
end)()
7474

7575
local is_uri = function(filename)
76-
return string.match(filename, "^[%w+-.]://") ~= nil
76+
return string.match(filename, "^%a[%w+-.]*://") ~= nil
7777
end
7878

7979
local is_absolute = function(filename, sep)

0 commit comments

Comments
 (0)