Skip to content

Commit

Permalink
Move global flag to start of the regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
VMRuiz committed Aug 20, 2024
1 parent 73ab994 commit a1a8a84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scrapy_settings_log/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
logger = logging.getLogger(__name__)

DEFAULT_REGEXES = [
r".*(?i)(api[\W_]*key).*", # apikey and variations e.g: shub_apikey or SC_APIKEY
r".*(?i)(AWS[\W_]*(SECRET[\W_]*)?(ACCESS)?[\W_]*(KEY|ACCESS[\W_]*KEY))", # AWS_SECRET_ACCESS_KEY and variations
r".*(?i)([\W_]*password[\W_]*).*", # password word
r"(?i).*(api[\W_]*key).*", # apikey and variations e.g: shub_apikey or SC_APIKEY
r"(?i).*(AWS[\W_]*(SECRET[\W_]*)?(ACCESS)?[\W_]*(KEY|ACCESS[\W_]*KEY))", # AWS_SECRET_ACCESS_KEY and variations
r"(?i).*([\W_]*password[\W_]*).*", # password word
]


Expand Down

0 comments on commit a1a8a84

Please sign in to comment.