diff options
author | 2022-05-17 00:49:09 +1000 | |
---|---|---|
committer | 2022-05-16 10:49:09 -0400 | |
commit | a68e611f079ab01b4bfda0cacd2d4989a6fdce01 (patch) | |
tree | 568fb88de43b744596c28709828bcac849761ee5 /scripts/genie.lua | |
parent | a450478483b5ba2b59804e2c82ff5b5de265320c (diff) |
fix version detection in str_to_version (#9767)
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r-- | scripts/genie.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua index f9307359ba1..f7b48fd3b05 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -39,7 +39,7 @@ function str_to_version(str) return val end local cnt = 10000 - for word in string.gmatch(str, '([^.]+)') do + for word in string.gmatch(str, '([^.-]+)') do if(tonumber(word) == nil) then return val end |