Skip to content

Commit

Permalink
Tweaked version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Mar 29, 2024
1 parent 71d4239 commit 2367297
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ElvUI/Core/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ do -- this is different from E.locale because we need to convert for ace locale
end

function E:ParseVersionString(addon)
local versionString = GetAddOnMetadata(addon, 'Version')
if not strfind(versionString, '-') then
return tonumber(strsub(versionString, 2)), versionString
elseif strfind(versionString, 'project%-version') then
local version = strsub(GetAddOnMetadata(addon, 'Version'), 2)
if not strfind(version, '%-') then
return tonumber(version), version
elseif strfind(version, 'project%-version') then
return 99999, 'Development'
else
return 99999, versionString
return 99999, version
end
end

Expand Down

0 comments on commit 2367297

Please sign in to comment.