A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/56f3c41f5f9d2f07d436744a5c7d7a07b31aac98 below:

change scheme pattern to not include the comma character (#… · neovim/neovim@56f3c41 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+8

-2

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+8

-2

lines changed Original file line number Diff line number Diff line change

@@ -74,8 +74,8 @@ local function uri_from_fname(path)

74 74

return table.concat(uri_parts)

75 75

end

76 76 77 -

local URI_SCHEME_PATTERN = '^([a-zA-Z]+[a-zA-Z0-9+-.]*):.*'

78 -

local WINDOWS_URI_SCHEME_PATTERN = '^([a-zA-Z]+[a-zA-Z0-9+-.]*):[a-zA-Z]:.*'

77 +

local URI_SCHEME_PATTERN = '^([a-zA-Z]+[a-zA-Z0-9.+-]*):.*'

78 +

local WINDOWS_URI_SCHEME_PATTERN = '^([a-zA-Z]+[a-zA-Z0-9.+-]*):[a-zA-Z]:.*'

79 79 80 80

--- Get a URI from a bufnr

81 81

---@param bufnr number

Original file line number Diff line number Diff line change

@@ -155,6 +155,12 @@ describe('URI methods', function()

155 155

return pcall(vim.uri_to_fname, 'not_an_uri.txt')

156 156

]])

157 157

end)

158 + 159 +

it('uri_to_fname should not treat comma as a scheme character', function()

160 +

eq(false, exec_lua [[

161 +

return pcall(vim.uri_to_fname, 'foo,://bar')

162 +

]])

163 +

end)

158 164

end)

159 165 160 166

end)

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4