jcampbell1/ui-utils — pull request #1 by douglasduteil (2013-07-31 14:18:27+00:00)
Title: [FIX] Highlight RegExp needs to be escaped.

Following https://github.com/angular-ui/ui-utils/pull/83
I suggest to just add a try-catch to secure the regex.
I added two tests with yours. Feel free to add more.