Skip to content

Commit

Permalink
fix(git): use vim.endswith to check git suffix (#1028)
Browse files Browse the repository at this point in the history
  • Loading branch information
axieax committed Aug 22, 2022
1 parent 1fd4482 commit 3a9f980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/packer/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ util.get_plugin_full_name = function(plugin)
end

util.remove_ending_git_url = function(url)
return url:find '%.git$' and url:sub(1, -4) or url
return vim.endswith(url, '.git') and url:sub(1, -5) or url
end

util.deep_extend = function(policy, ...)
Expand Down

0 comments on commit 3a9f980

Please sign in to comment.