Opened 15 years ago
Last modified 7 years ago
#6848 new defect
RegEx aren't handled well
Reported by: | Owned by: | Richard Liao | |
---|---|---|---|
Priority: | normal | Component: | TracTicketValidatorPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description (last modified by )
Hi! I'm having issue to define a proper regex to handle my description field with this plugin.
The Description field should look like this:
== GOALS ==
Some Goals could be written here.
They could have some enumerations:
- Number one
- Number two
...
- Number N
<end of goals>
Here could be some more text
after this block could be another block, or just empty.
I defined a regex and configured the plugin:
[components] ticketvalidator.* = enabled [ticketvalidator] validates = description description.rule = ^== '''GOALS''' ==[\n\r]*[.\r\n\s]*<end of goals>[\n\r]*[.\r\n]* description.tip = Sections: Goals, Necessary input, Necessary output and Necessary resources have to exist.
If I am testing without any text in between the "Goals-Tags" it seems to be alright, as soon, as I am adding some text, I am getting my own tip: Sections: Goals, Necessary input, Necessary output and Necessary resources have to exist.
I tried to debug it and it seems, that re.py throughs Expected EOF Expression.
Attachments (0)
Change History (1)
comment:1 Changed 7 years ago by
Description: | modified (diff) |
---|---|
Keywords: | RegEx re.py removed |
Summary: | RegEx aren't handeled well → RegEx aren't handled well |