Add flags and fix pattern
This commit is contained in:
parent
ffacb64b1f
commit
fb1b116d16
1 changed files with 5 additions and 1 deletions
|
@ -1306,7 +1306,11 @@ class NcPasswordClient:
|
|||
count = 0
|
||||
for password in passwords:
|
||||
for key in password.keys():
|
||||
match = re.search(password[key], pattern)
|
||||
match = re.search(
|
||||
pattern,
|
||||
password[key],
|
||||
flags=re.IGNORECASE & re.MULTILINE
|
||||
)
|
||||
if match:
|
||||
self.info(
|
||||
password
|
||||
|
|
Loading…
Reference in a new issue