Issue 2886: JavaScript search field doesn't find some code

Steps to reproduce

  1. Open Firebug and enable the Script panel
  2. Reload the page
  3. Focus the search field
  4. Type (!(accidental-regexp))
    ⇒ There should be one match at line 8
  5. Check the Use Regular Expression search option
  6. Search for keyword\s+\d+
    ⇒ There should be one match at line 10

Expected result