Menu

#38 Exception for certain replacement strings

None
closed
5
2016-02-11
2014-04-21
Helios
No

In the "Replace With..." textbox, ending the replacement string with a single backslash (i.e. one that doesn't escape anything) causes an exception (presumably StringIndexOutOfBoundsException) and displays the exception message on the Info column, instead of something that actually tells the user what went wrong. Something like "regex parsing error" or "incomplete escape sequence" would be more useful.

Discussion

  • Olivier Wehner

    Olivier Wehner - 2014-04-23

    That's an interesting case that points out a usability shortage as the replacement string is not actively parsed and validated before it is applied.

    Thank you for reporting this issue.

     
  • Olivier Wehner

    Olivier Wehner - 2014-04-23
    • labels: exception, StringIndexOutOfBoundsException --> exception, Replace With, replacement
    • assigned_to: Olivier Wehner
    • Group: -->
     
  • Olivier Wehner

    Olivier Wehner - 2016-02-11
    • labels: exception, Replace With, replacement --> exception, replacement
    • status: open --> pending
     
  • Olivier Wehner

    Olivier Wehner - 2016-02-11
    • status: pending --> closed
     
  • Olivier Wehner

    Olivier Wehner - 2016-02-11

    Such errors are now catched and displayed. Fixed in 2.0

     

Anonymous
Anonymous

Add attachments
Cancel