Authored by 梁志锋

修改bug

... ... @@ -36,6 +36,7 @@ const discountSplit = (text) => {
let endNum = 0,
i;
text = text || '';
for (i = 0; i < text.length; i++) {
if (/^([0-9]|\%)*$/.test(text[i])) {
endNum = i + 1;
... ...
... ... @@ -57,6 +57,7 @@ const discountSplit = (text, targetString) => {
let endNum = 0,
i;
text = text || '';
for (i = 0; i < text.length; i++) {
if (targetString !== null) {
if (text[i] !== targetString) {
... ...
{
"name": "yohobuy-node",
"version": "4.8.12",
"version": "4.8.15",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...