Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
F Fix #
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenYFan committed Jul 22, 2022
1 parent ece5620 commit b3ddb79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions main/handle/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ self.clientworkerhandle = async (request) => {
if (transform_rule.search === '_') transform_rule.search = catch_rule.rule
switch (transform_rule.searchin || "url") {
case 'url':
console.log(transform_rule)
if (tReq.url.match(new RegExp(transform_rule.search, transform_rule.searchflags))) tSearched = true;
break
case 'header':
Expand Down
2 changes: 1 addition & 1 deletion main/utils/cons.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const cons = {
console.log(`%c[SUCCESS]%c ${m}`, 'color:white;background:green;', '')
},
w: (m) => {
//console.log(`%c[WARNING]%c ${m}`, 'color:brown;background:yellow;', '')
console.log(`%c[WARNING]%c ${m}`, 'color:brown;background:yellow;', '')
},
i: (m) => {
console.log(`%c[INFO]%c ${m}`, 'color:white;background:blue;', '')
Expand Down
2 changes: 1 addition & 1 deletion static/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ hotconfig:
catch_rules:
- rule: _
transform_rules:
- search: \
- search: \#.*
searchin: url
replace: ''
- search: \?.*
Expand Down

0 comments on commit b3ddb79

Please sign in to comment.