浏览代码

获取章节编号调整

MaiXinRong 5 年之前
父节点
当前提交
ecc52fa9ed
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) + '';