diff options
author | Kushal Pandya <kushalspandya@gmail.com> | 2017-05-11 09:05:07 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-05-11 09:05:07 +0000 |
commit | 5c25629a1427fd9a2e571bcde070f9aead2efd91 (patch) | |
tree | 91e839eace96b24f6e612a1ae3deec2e92639fac /app/assets | |
parent | 344fee5a9a77a953b2350069008e7ae70c88f303 (diff) | |
download | gitlab-ce-5c25629a1427fd9a2e571bcde070f9aead2efd91.tar.gz |
Fix slash commands detection in comments
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/notes.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index f6fe6d9f0fd..7ba44835741 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -24,7 +24,7 @@ const normalizeNewlines = function(str) { (function() { this.Notes = (function() { const MAX_VISIBLE_COMMIT_LIST_COUNT = 3; - const REGEX_SLASH_COMMANDS = /\/\w+/g; + const REGEX_SLASH_COMMANDS = /^\/\w+/gm; Notes.interval = null; |