Modify ↓
Opened 9 years ago
Last modified 6 years ago
#12510 new enhancement
Message at validate rule
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | DynamicFieldsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.0 |
Description (last modified by )
Hi,
It would be great if it is possible to add a message to the validation rule, because the least users know how a regex work.
And the message owner must not ^(?!(?:[a-z0-9!#...
is not perfect ;)
example checks if the owner is an email address:
owner.invalid_if = ^(?!(?:[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])).*$
THANK YOU regards
Attachments (0)
Change History (3)
comment:1 Changed 9 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 9 years ago by
comment:3 Changed 6 years ago by
Owner: | Rob Guttman deleted |
---|
Note: See
TracTickets for help on using
tickets.
Sounds reasonable. PatchWelcome.