Skip to content

Commit 87557d5

Browse files
committed
Fix # to # modlineValue pattern
1 parent 4d1162d commit 87557d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Classes/TradeHelpers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ end
3030
-- mods, the midpoint of that range
3131
--- @param line string
3232
function M.modLineValue(line)
33-
local low, high = line:match("(%-?[%d]+%.?[%d]) to (%-?[%d]+%.?[%d])")
33+
local low, high = line:match("(%-?%d+%.?%d*) to (%-?%d+%.?%d*)")
3434
if low and high then
3535
return (tonumber(low) + tonumber(high)) / 2
3636
end

0 commit comments

Comments
 (0)