Simplified the regular expression in the populate method of the GeneralTagTab class in the summary editor.

This commit is contained in:
依瑪貓 2023-03-03 23:48:42 +08:00
parent 063c769158
commit a9908a7df4

View File

@ -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;
}