Commit 805479e72eb80da6fc64de344960cd7040dc02b4
1 parent
2361d2d4
feat: 代码提交
Showing
2 changed files
with
2 additions
and
2 deletions
src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue
| ... | ... | @@ -551,7 +551,7 @@ export default { |
| 551 | 551 | }, |
| 552 | 552 | processString(input) { |
| 553 | 553 | // 正则表达式: |
| 554 | - const regexs = [/[0-9]+[.)]/, /(\d+分)/]; | |
| 554 | + const regexs = [/[0-9]+[.)]/, /(\d+分)/, /^(\d{1,3})/]; | |
| 555 | 555 | |
| 556 | 556 | regexs.forEach((regex) => { |
| 557 | 557 | input = input.replace(regex, ""); | ... | ... |
src/views/basic/askTestQuestion/wrongQuestion.vue
| ... | ... | @@ -593,7 +593,7 @@ export default { |
| 593 | 593 | }, |
| 594 | 594 | processString(input) { |
| 595 | 595 | // 正则表达式 |
| 596 | - const regexs = [/[0-9]+[.)]/, /(\d+分)/]; | |
| 596 | + const regexs = [/[0-9]+[.)]/, /(\d+分)/, /^(\d{1,3})/]; | |
| 597 | 597 | |
| 598 | 598 | regexs.forEach((regex) => { |
| 599 | 599 | input = input.replace(regex, ""); | ... | ... |