StevenDevooght / tinyMCE-mention

Mention/Autocomplete plugin for tinyMCE WYSIWYG editor.
http://stevendevooght.github.io/tinyMCE-mention/
220 stars 95 forks source link

Regular expression compilation fails when using reserved characters #13

Closed jchafik closed 9 years ago

jchafik commented 9 years ago

Line 195 of plugin.js may fail if special characters are used in the query. For example, matching on "Test (unbalanced" will fail to parse because of an unterminated group.

Possible Solutions: escape characters in text or use something other than a regular expression for highlighting.

StevenDevooght commented 9 years ago

Problem should be fixed. Special regex characters are escaped.