| | |
| | | let regex = ""; |
| | | let regexno = ""; |
| | | let hostregex = ""; |
| | | let hostregexno = ""; |
| | | |
| | | for (let i = 0; i < this.dynamiccruxs.length; i++) { |
| | | regex += `${this.dynamiccruxs[i]}|`; |
| | |
| | | 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) { |