summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorKushal Pandya <kushalspandya@gmail.com>2017-05-11 09:05:07 +0000
committerFilipa Lacerda <filipa@gitlab.com>2017-05-11 09:05:07 +0000
commit5c25629a1427fd9a2e571bcde070f9aead2efd91 (patch)
tree91e839eace96b24f6e612a1ae3deec2e92639fac /app/assets
parent344fee5a9a77a953b2350069008e7ae70c88f303 (diff)
downloadgitlab-ce-5c25629a1427fd9a2e571bcde070f9aead2efd91.tar.gz
Fix slash commands detection in comments
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/notes.js2
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;