feat(vim.uri): Allow URI schemes other than file: without authority

This commit is contained in:
Tom Payne
2021-07-02 15:27:04 +01:00
committed by Alessandro Pezzoni
parent 82a443e1f3
commit 1dab9357de
2 changed files with 16 additions and 1 deletions

View File

@@ -74,7 +74,7 @@ local function uri_from_fname(path)
return table.concat(uri_parts)
end
local URI_SCHEME_PATTERN = '^([a-zA-Z]+[a-zA-Z0-9+-.]*):/+.*'
local URI_SCHEME_PATTERN = '^([a-zA-Z]+[a-zA-Z0-9+-.]*):.*'
--- Get a URI from a bufnr
--@param bufnr (number): Buffer number