Explorar o código

获取章节编号调整

MaiXinRong %!s(int64=5) %!d(string=hai) anos
pai
achega
ecc52fa9ed
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/extend/helper.js

+ 1 - 1
app/extend/helper.js

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