From 5339f63a6ab4611681b8ffd0a295193b1f5986b6 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期一, 27 五月 2024 14:16:20 +0800 Subject: [PATCH] 测试完成 --- src/components/Regular/index.vue | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/components/Regular/index.vue b/src/components/Regular/index.vue index 5de3b58..6368c34 100644 --- a/src/components/Regular/index.vue +++ b/src/components/Regular/index.vue @@ -255,8 +255,12 @@ } regex = regex.slice(0, -1); regexno = regexno.slice(0, -1); + if (regexno) { + hostregexno = "^(?!.*(?:" + `${regexno}` + ")).*$"; + } else { + hostregexno = ""; + } hostregex = "(?=.*(?:" + `${regex}` + ")).*$"; - hostregexno = "^(?!.(?:" + `${regexno}` + ")).*$"; this.TargetoptionList[index].targetregex = hostregex; this.TargetoptionList[index].targetregex2 = hostregexno; console.log(hostregex, "纭畾瀛楀尮閰�"); -- Gitblit v1.9.3