Skip to content

Commit

Permalink
fix: use strfind to check
Browse files Browse the repository at this point in the history
  • Loading branch information
fang2hou committed Sep 19, 2024
1 parent 46c100c commit 885e3a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Initialize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ local format = format
local hooksecurefunc = hooksecurefunc
local next = next
local print = print
local strfind = strfind
local strmatch = strmatch

local C_AddOns_GetAddOnMetadata = C_AddOns.GetAddOnMetadata
Expand All @@ -36,7 +37,7 @@ local function getVersion()
local version, variant, subversion

-- Git
if versionString == "@project-version@" then
if strfind(versionString, "project%-version") then
return xVersionString, "git", nil
end

Expand Down

0 comments on commit 885e3a3

Please sign in to comment.