-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
The regex
pattern: (^[ !#-~]+$)|(^Passphrase:[ ^[ !#-~]+$)|(^Hex:[0-9A-Fa-f]{24})|(^\*+$)
pattern: (^[ !#-~]+$)|(^Passphrase:[ ^[ !#-~]+$)|(^Hex:[0-9A-Fa-f]{24,96})|(^\*+$)
pattern: (^[ !#-~]+$)|(^Passphrase:[ ^[ !#-~]+$)|(^Hex:[0-9A-Fa-f]{32})|(^\*+$)are considered invalid by rust regex.
SchemaError: regex parse error:
(^[ !#-~]+$)|(^Passphrase:[ ^[ !#-~]+$)|(^Hex:[0-9A-Fa-f]{24,96})|(^\*+$)
^
error: unclosed character class
It's accepted by python re.
Yet I think it lacks an escape for the [ in ^[
(^Passphrase:[ ^\[ !#-~]+$)
Metadata
Metadata
Assignees
Labels
No labels