summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-17 14:40:02 +0200
committerRobert Speicher <rspeicher@gmail.com>2015-04-20 13:01:47 -0400
commitc52bf4ad3cc03aaad4e35236c512bd5c62d45939 (patch)
treefac50845e2c175bc6b87f4cf88e25814f3b1722a /lib
parentb5802d144b4141b2259247f83903f3431ed6199c (diff)
downloadgitlab-ce-c52bf4ad3cc03aaad4e35236c512bd5c62d45939.tar.gz
Tweak single-word label regex to fix pending spec.
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/markdown/label_reference_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/markdown/label_reference_filter.rb b/lib/gitlab/markdown/label_reference_filter.rb
index f40b981ba60..4c21192c0d3 100644
--- a/lib/gitlab/markdown/label_reference_filter.rb
+++ b/lib/gitlab/markdown/label_reference_filter.rb
@@ -27,7 +27,7 @@ module Gitlab
~(
(?<label_id>\d+) | # Integer-based label ID, or
(?<label_name>
- [^'"&\?,\s]+ | # String-based single-word label title
+ [A-Za-z0-9_-]+ | # String-based single-word label title
['"][^&\?,]+['"] # String-based multi-word label surrounded in quotes
)
)