Skip to content

Commit

Permalink
fix: reverse target_host matching
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan Nguyen authored and ruifm committed Jul 15, 2021
1 parent a9340a7 commit 399bac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/gitlinker/hosts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ end
function M.get_matching_callback(target_host)
local matching_callback
for host, callback in pairs(M.callbacks) do
if host:match(target_host) then
if target_host:match(host) then
matching_callback = callback
break
end
Expand Down

0 comments on commit 399bac3

Please sign in to comment.