Pārlūkot izejas kodu

获取章节编号调整

MaiXinRong 5 gadi atpakaļ
vecāks
revīzija
ecc52fa9ed
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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) + '';