Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 390223

Summary: Search term not shown correctly in regex search result
Product: [ECD] Orion Reporter: John Arthorne <john.arthorne>
Component: ClientAssignee: libing wang <libingw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: libingw
Version: unspecified   
Target Milestone: 1.0 RC1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description John Arthorne CLA 2012-09-24 11:29:40 EDT
I20120921-1702

- Do a global search for this regex: <b>(.*?)</b>
- This should return all HTML files with a bold element.

-> In the search results page, it says:

  Files 1-10 of 10 matching (.?)

Note it is not displaying the search term correctly. I suspect the HTML tags are being eaten somewhere.
Comment 1 libing wang CLA 2012-09-24 12:21:06 EDT
The display of (.*?) on the UI side was due to the usage of innerHTML. THis should be easy to fix.
The underlying regEx is correct.
I tried to use <b(.*?)/b> instead of <b>(.*?)</b> and I got two html files.
Comment 2 libing wang CLA 2012-10-01 14:00:26 EDT
Will use createTextNode instead of modifying .innerHTMl directly.