diff --git a/torfilter.js b/torfilter.js index b33e266..077ca6e 100644 --- a/torfilter.js +++ b/torfilter.js @@ -1197,8 +1197,8 @@ function addFilterPanel() { - -
大小介于 + +
大小介于 Gb
@@ -1299,9 +1299,9 @@ function sizeStrToGB(sizeStr) { } function getTorSizeRange(rangestr) { - let m = rangestr.match(/(\d+)([,,-]\s*(\d+))?/); + let m = rangestr.match(/([\d\.]+)([,,-]\s*([\d\.]+))?/); if (m) { - return [parseInt(m[1]) || 0, parseInt(m[3]) || 0]; + return [parseFloat(m[1]) || 0, parseFloat(m[3]) || 0]; } return [0, 0]; }