|
@@ -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) + '';
|