Fixed GFM autocomplete to disallow non-word characters in string

Closes #25540
This commit is contained in:
Phil Hughes 2016-12-12 09:54:27 +00:00
parent 221a461c1e
commit e1f563109c
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@
_a = decodeURI("%C3%80");
_y = decodeURI("%C3%BF");
regexp = new RegExp("(?:\\B|\\W|\\s)" + flag + "(?!\\W)([A-Za-z" + _a + "-" + _y + "0-9_\'\.\+\-]*)|([^\\x00-\\xff]*)$", 'gi');
regexp = new RegExp("(?:\\B|\\W|\\s)" + flag + "(?!\\W)([A-Za-z" + _a + "-" + _y + "0-9_\'\.\+\-]*)$", 'gi');
match = regexp.exec(subtext);