-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
The regex in the human age verification
pattern: (?:^(?:\d+y)?(?:\d+m)?(?:\d+d)?$)|(?:not available)|(?:not applicable) |
also matches the empty string and some entries with additional input like 'not applicable hoppla'.
See https://regex101.com/r/rTfGgC/5
I propose a the following regex instead
^(?:(?:\d+y)(?:\d+m)?(?:\d+d)?|(?:\d+y)?(?:\d+m)(?:\d+d)?|(?:\d+y)?(?:\d+m)?(?:\d+d)|(?:not available)|(?:not applicable))$
Metadata
Metadata
Assignees
Labels
No labels