You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently found a bug (or at least a documentation gap) in this module.
For test purposes, I wrote an input validation where the user has to type in a password with a specific pattern (allowed symbols and minimal/maximal length). If I only use the allowRegex parameter it isn't working properly:
code:
password=pyip.inputStr(prompt='Type in your password: ', allowRegexes=[r"[A-Za-z0-9-_]{6,18}"], blockRegexes=[r"."])
log:
Type in your password: $hort
It's only working, if the blockRegex is set too:
code:
password = pyip.inputStr(prompt='Type in your password: ', allowRegexes=[r"[A-Za-z0-9-_]{6,18}"], blockRegexes=[r"."])
log:
Type in your password: $short
This response is invalid.
Maybe the code has to be updated or the documentation has to be changed.
Thanks.
Kind Severin
The text was updated successfully, but these errors were encountered:
Hi @asweigart, Hi @ALL,
I recently found a bug (or at least a documentation gap) in this module.
For test purposes, I wrote an input validation where the user has to type in a password with a specific pattern (allowed symbols and minimal/maximal length). If I only use the
allowRegex
parameter it isn't working properly:code:
log:
It's only working, if the
blockRegex
is set too:code:
log:
Maybe the code has to be updated or the documentation has to be changed.
Thanks.
Kind Severin
The text was updated successfully, but these errors were encountered: