Skip to content

Commit

Permalink
处理部分ruleSearchUrl异常
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfoxtail committed Apr 28, 2022
1 parent 00dc948 commit 8ecbaea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clear.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ def startcheck(d):
SearchFlage = "N"
OnlyFindFlage = "N"

# 处理异常的url
if d.get("ruleSearchUrl") is not None:
reurl = re.compile("\|https?://.*$")
d["ruleSearchUrl"] = reurl.sub("", d.get("ruleSearchUrl"))

if d.get("ruleFindUrl") is not None:
FindFlage = "Y"
if d.get("ruleSearchUrl") is not None or d.get("searchUrl") is not None:
Expand Down

0 comments on commit 8ecbaea

Please sign in to comment.