|
@@ -488,7 +488,7 @@ module.exports = {
|
|
|
const result = codePath[0].match(numReg);
|
|
|
const num = parseInt(result[0]);
|
|
|
return this.mul(this.div(num, 100, 0), 100) + '';
|
|
|
- } else if (codePath.length > 2 && reg.test(codePath[1])) {
|
|
|
+ } else if (codePath.length >= 2 && reg.test(codePath[1])) {
|
|
|
const numReg = /[0-9]{3,4}$/;
|
|
|
const result = codePath[1].match(numReg);
|
|
|
const num = parseInt(result[0]);
|