aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua
diff options
context:
space:
mode:
authorDmytro Meleshko <dmytro.meleshko@gmail.com>2021-12-26 23:36:14 +0200
committerGitHub <noreply@github.com>2021-12-26 16:36:14 -0500
commit56f3c41f5f9d2f07d436744a5c7d7a07b31aac98 (patch)
treeef30c1e5e61ccd03b6e7fd0ab0d14b4205be0d51 /test/functional/lua
parent99526dc9b3355cb99cd1b82e47a36db71db4a669 (diff)
downloadrneovim-56f3c41f5f9d2f07d436744a5c7d7a07b31aac98.tar.gz
rneovim-56f3c41f5f9d2f07d436744a5c7d7a07b31aac98.tar.bz2
rneovim-56f3c41f5f9d2f07d436744a5c7d7a07b31aac98.zip
fix(uri): change scheme pattern to not include the comma character (#16797)
Diffstat (limited to 'test/functional/lua')
-rw-r--r--test/functional/lua/uri_spec.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/lua/uri_spec.lua b/test/functional/lua/uri_spec.lua
index dbfbe2dbfe..fa11fdf794 100644
--- a/test/functional/lua/uri_spec.lua
+++ b/test/functional/lua/uri_spec.lua
@@ -155,6 +155,12 @@ describe('URI methods', function()
return pcall(vim.uri_to_fname, 'not_an_uri.txt')
]])
end)
+
+ it('uri_to_fname should not treat comma as a scheme character', function()
+ eq(false, exec_lua [[
+ return pcall(vim.uri_to_fname, 'foo,://bar')
+ ]])
+ end)
end)
end)