Merge pull request #4207 from wildente/master

add proper multiline support for qute-pass
This commit is contained in:
Florian Bruhin 2018-09-18 21:03:06 +02:00 committed by GitHub
commit ac5238a797
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,7 @@ def main(arguments):
# Match username
target = selection if arguments.username_target == 'path' else secret
match = re.match(arguments.username_pattern, target)
match = re.search(arguments.username_pattern, target, re.MULTILINE)
if not match:
stderr('Failed to match username pattern on {}!'.format(arguments.username_target))
return ExitCodes.COULD_NOT_MATCH_USERNAME