fix version detection in str_to_version (#9767)
This commit is contained in:
parent
a450478483
commit
a68e611f07
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user