Fix --cookies-from-browser CLI parsing

Closes #5716
This commit is contained in:
pukkandan 2022-12-06 00:35:08 +05:30
parent c4cbd3bebd
commit 935bac1e4d
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39

View file

@ -350,7 +350,7 @@ def validate_options(opts):
mobj = re.fullmatch(r'''(?x)
(?P<name>[^+:]+)
(?:\s*\+\s*(?P<keyring>[^:]+))?
(?:\s*:\s*(?P<profile>.+?))?
(?:\s*:\s*(?!:)(?P<profile>.+?))?
(?:\s*::\s*(?P<container>.+))?
''', opts.cookiesfrombrowser)
if mobj is None: