allow negative tag weight

This commit is contained in:
Dongsen
2023-08-27 00:39:35 +08:00
committed by GitHub
parent ff150aae22
commit d097bb7187

View File

@@ -304,7 +304,6 @@ export default {
getTagWeightNum(tag) {
const match = tag.match(this.weightNumRegex)
let weightNum = match ? parseFloat(match[2]) : 0
weightNum = weightNum >= 0 ? weightNum : 0
return weightNum
},