From a9908a7df4af54ffde6d1959fd26152f94b0420f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Fri, 3 Mar 2023 23:48:42 +0800 Subject: [PATCH] Simplified the regular expression in the populate method of the GeneralTagTab class in the summary editor. --- src/accounting/static/js/summary-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/accounting/static/js/summary-editor.js b/src/accounting/static/js/summary-editor.js index b55f1cc..b60eac1 100644 --- a/src/accounting/static/js/summary-editor.js +++ b/src/accounting/static/js/summary-editor.js @@ -613,7 +613,7 @@ class GeneralTagTab extends TagTabPlane { * @override */ populate() { - const found = this.editor.summary.value.match(/^([^—]+)—.+?(?:×\d+)?(?:\([^)]+\))?$/); + const found = this.editor.summary.value.match(/^([^—]+)—/); if (found === null) { return false; }