Skip to content

Commit e31cf81

Browse files
authored
fix: is_uri accepts all valid schemas (#481)
A URI scheme can contain "-", "+" and "*" as well as digits and letters. https://www.rfc-editor.org/rfc/rfc3986#page-17
1 parent dfcd902 commit e31cf81

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, "^[%w+-.]://") ~= nil
7777
end
7878

7979
local is_absolute = function(filename, sep)

0 commit comments

Comments
 (0)