Skip to content

Commit

Permalink
Improve is_domain func.
Browse files Browse the repository at this point in the history
  • Loading branch information
xkww3n committed Oct 15, 2023
1 parent d18c47e commit a1af0e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Utils/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def is_domain(rule: Filter) -> bool:
and "#" not in rule.text
and "," not in rule.text
and ":" not in rule.text
and " " not in rule.text
and ("(" or ")") not in rule.text
and not rule.text.startswith("_")
and not rule.text.startswith("-")
and not rule.text.startswith("^")
Expand Down

0 comments on commit a1af0e3

Please sign in to comment.