aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua
diff options
context:
space:
mode:
authorTom Payne <tom@tompayne.dev>2021-07-02 15:27:04 +0100
committerAlessandro Pezzoni <alessandro.pezzoni@runbox.com>2021-07-10 18:27:37 +0100
commit1dab9357de586b08431175f19a1b44bb294866d6 (patch)
treef2328f228f882c2a118a64e5bdea3b07711337f8 /runtime/lua
parent82a443e1f3fa3dd187849777f18d3a77c0a522df (diff)
downloadrneovim-1dab9357de586b08431175f19a1b44bb294866d6.tar.gz
rneovim-1dab9357de586b08431175f19a1b44bb294866d6.tar.bz2
rneovim-1dab9357de586b08431175f19a1b44bb294866d6.zip
feat(vim.uri): Allow URI schemes other than file: without authority
Diffstat (limited to 'runtime/lua')
-rw-r--r--runtime/lua/vim/uri.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/uri.lua b/runtime/lua/vim/uri.lua
index b7805e0cae..82c9a31464 100644
--- a/runtime/lua/vim/uri.lua
+++ b/runtime/lua/vim/uri.lua
@@ -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