RegEx search breaks with some characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Scribes |
Fix Committed
|
Medium
|
Mystilleef |
Bug Description
Do a regular expression search for ")" (without quotes). When you click "Find", the button's caption changes to "Stop", the input box is disabled. Clicking "Stop" will change the caption back to "Find", but the input box remains disabled and doesn't become usable again until you close the current window.
The console displays the following error:
------------------
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
regex_object = compile_(pattern, flags)
File "/usr/lib/
return _compile(pattern, flags)
File "/usr/lib/
raise error, v # invalid expression
sre_constants.
------------------
The reason here is the obviously invalid RegEx with an unescaped parenthesis, which is up to the user to get right, but the editor should handle it gracefully and make the input field editable again to give the user the opportunity to correct their mistake.
Version: 0.4-dev-build899 on Ubuntu Maverick
Changed in scribes: | |
status: | Triaged → In Progress |
Changed in scribes: | |
status: | In Progress → Fix Committed |
assignee mystilleef
status triaged
importance medium