Browse Source

获取章节编号调整

MaiXinRong 5 years ago
parent
commit
ecc52fa9ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/extend/helper.js

+ 1 - 1
app/extend/helper.js

@@ -427,7 +427,7 @@ module.exports = {
     getChapterCode(code, symbol = '-') {
         if (!code || code === '') return '';
         const codePath = code.split(symbol);
-        const reg = /^[0-9]*$/;
+        const reg = /[0-9]*$/;
         if (reg.test(codePath[0])) {
             const num = parseInt(codePath[0]);
             return this.mul(this.div(num, 100, 0), 100) + '';