WXL
2024-01-26 59272d99113d2d11b1873d60653e52b49f14d757
src/components/Regular/index.vue
@@ -203,6 +203,7 @@
      let regex = "";
      let regexno = "";
      let hostregex = "";
      let hostregexno = "";
      for (let i = 0; i < this.dynamiccruxs.length; i++) {
        regex += `${this.dynamiccruxs[i]}|`;
@@ -213,8 +214,10 @@
      regex = regex.slice(0, -1);
      regexno = regexno.slice(0, -1);
      hostregex = "^(?!." + `${regexno}` + ")(.(" + `${regex}` + ")+.*)$";
      console.log(hostregex);
      hostregex = "(?=.*(?:" + `${regex}` + ")).*$";
      hostregexno = "(?=.*(?:" + `${regexno}` + ")).*$";
      console.log(hostregex, "确定字匹配");
      console.log(hostregexno, "否定字匹配");
    },
    // 控制文件
    handleChange(file, fileList) {