Changes between Version 2 and Version 3 of TracTicketValidatorPlugin
- Timestamp:
- Aug 24, 2009, 2:35:03 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracTicketValidatorPlugin
v2 v3 25 25 26 26 == Example == 27 27 1. Validate anonymous author email address and make comment required: 28 28 {{{ 29 29 [components] … … 33 33 validate_author = true 34 34 validate_author.tip = Please fill your valid email address 35 validates = summary,comment35 validates = comment 36 36 comment.rule = .* 37 37 comment.tip = Please input comment 38 }}} 39 1. There is a very straightward implement of parent/child tickets, just prepend parent ticket number to the child ticket summary. For example, the parent ticket 234 summary is {{{<#0>A parent ticket}}}, the child ticket summary will be {{{<#234>A child ticket}}}. We can do validation like following: 40 {{{ 41 [components] 42 ticketvalidator.* = enabled 43 44 [ticketvalidator] 45 validates = summary 46 summary.rule = ^<#\d*>.* 47 summary.tip = Please correct summary format 38 48 }}} 39 49