Add flags and fix pattern

This commit is contained in:
Antonio J. Delgado 2024-11-21 09:48:54 +02:00
parent ffacb64b1f
commit fb1b116d16

View file

@ -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