diff options
author | Phil Hughes <me@iamphill.com> | 2016-12-28 10:19:24 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-12-28 10:19:24 +0000 |
commit | c5757e9afb29f094a37e3ac19f22db4b90fc7670 (patch) | |
tree | b7c2b5c26033d75669879fbfc2eff1cf0bdaa3a3 /app/assets/javascripts/gfm_auto_complete.js.es6 | |
parent | b93c72e33a50aaed845fe333dee0201b0b11934e (diff) | |
download | gitlab-ce-c5757e9afb29f094a37e3ac19f22db4b90fc7670.tar.gz |
Fix GFM dropdown not showing at beginning of new linesgfm-new-line-fix
Closes #26145
Diffstat (limited to 'app/assets/javascripts/gfm_auto_complete.js.es6')
-rw-r--r-- | app/assets/javascripts/gfm_auto_complete.js.es6 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/gfm_auto_complete.js.es6 b/app/assets/javascripts/gfm_auto_complete.js.es6 index 3857bbb743b..87c579ac757 100644 --- a/app/assets/javascripts/gfm_auto_complete.js.es6 +++ b/app/assets/javascripts/gfm_auto_complete.js.es6 @@ -77,7 +77,7 @@ var _a, _y, regexp, match, atSymbolsWithBar, atSymbolsWithoutBar; atSymbolsWithBar = Object.keys(this.app.controllers).join('|'); atSymbolsWithoutBar = Object.keys(this.app.controllers).join(''); - subtext = subtext.split(' ').pop(); + subtext = subtext.split(/\s+/g).pop(); flag = flag.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); _a = decodeURI("%C3%80"); |