detect attempts to repeat anchors (fixes bug #130748)

This commit is contained in:
Fredrik Lundh 2001-02-18 21:04:48 +00:00
parent 8ac3627b91
commit c0c7ee3a65
2 changed files with 5 additions and 0 deletions

View file

@ -636,4 +636,6 @@ xyzabc
(r'(?i)m+', 'MMM', SUCCEED, 'found', 'MMM'),
(r'(?i)[M]+', 'MMM', SUCCEED, 'found', 'MMM'),
(r'(?i)[m]+', 'MMM', SUCCEED, 'found', 'MMM'),
# bug 130748: ^* should be an error (nothing to repeat)
(r'^*', '', SYNTAX_ERROR),
]