From 56f3c41f5f9d2f07d436744a5c7d7a07b31aac98 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Sun, 26 Dec 2021 23:36:14 +0200 Subject: fix(uri): change scheme pattern to not include the comma character (#16797) --- test/functional/lua/uri_spec.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/functional/lua') 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) -- cgit