summaryrefslogtreecommitdiff
path: root/app/models/label.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-07-12 21:48:31 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-07-13 11:42:31 -0300
commit1167ef4089645e8c043cf9009ff384829421acd7 (patch)
tree632fdc8532e7af2e070c569c592f9a06b28ef39e /app/models/label.rb
parentf682c0975b3a589d9fc6dae585cf6e36fa9ac348 (diff)
downloadgitlab-ce-1167ef4089645e8c043cf9009ff384829421acd7.tar.gz
Fix markdown rendering for label references that contains `.`
Diffstat (limited to 'app/models/label.rb')
-rw-r--r--app/models/label.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/label.rb b/app/models/label.rb
index 9b8239d8757..df38d763c96 100644
--- a/app/models/label.rb
+++ b/app/models/label.rb
@@ -61,8 +61,8 @@ class Label < ActiveRecord::Base
(?:
(?<label_id>\d+(?!\S\w)\b) | # Integer-based label ID, or
(?<label_name>
- [A-Za-z0-9_\-\?&]+ | # String-based single-word label title, or
- "([^"]*)" # String-based multi-word label surrounded in quotes
+ [A-Za-z0-9_\-\?\.&]+ | # String-based single-word label title, or
+ "([^"]*)" # String-based multi-word label surrounded in quotes
)
)
}x