We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d1162d commit 87557d5Copy full SHA for 87557d5
1 file changed
src/Classes/TradeHelpers.lua
@@ -30,7 +30,7 @@ end
30
-- mods, the midpoint of that range
31
--- @param line string
32
function M.modLineValue(line)
33
- local low, high = line:match("(%-?[%d]+%.?[%d]) to (%-?[%d]+%.?[%d])")
+ local low, high = line:match("(%-?%d+%.?%d*) to (%-?%d+%.?%d*)")
34
if low and high then
35
return (tonumber(low) + tonumber(high)) / 2
36
end
0 commit comments