mirror of
https://github.com/neovim/neovim.git
synced 2026-04-04 14:49:31 +00:00
refactor(types): more fixes (2)
This commit is contained in:
committed by
Lewis Russell
parent
3c572a31a3
commit
85b13751a5
@@ -274,7 +274,7 @@ end
|
||||
--- @see # https://github.com/npm/node-semver#ranges
|
||||
---
|
||||
--- @param spec string Version range "spec"
|
||||
--- @return vim.VersionRange
|
||||
--- @return vim.VersionRange?
|
||||
function M.range(spec) -- Adapted from https://github.com/folke/lazy.nvim
|
||||
if spec == '*' or spec == '' then
|
||||
return setmetatable({ from = M.parse('0.0.0') }, { __index = VersionRange })
|
||||
|
||||
Reference in New Issue
Block a user