summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-07-13 11:48:21 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-07-13 11:48:59 -0300
commit677bc4438c84129d059a8c1d1e38d953f5c840ce (patch)
tree9ced6516e0f70677acdb18144e96acac586c262c
parent1167ef4089645e8c043cf9009ff384829421acd7 (diff)
downloadgitlab-ce-677bc4438c84129d059a8c1d1e38d953f5c840ce.tar.gz
Doesn't match empty label references surrounded in quotes
-rw-r--r--app/models/label.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/label.rb b/app/models/label.rb
index df38d763c96..1199793456d 100644
--- a/app/models/label.rb
+++ b/app/models/label.rb
@@ -62,7 +62,7 @@ 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
+ "([^"]+)" # String-based multi-word label surrounded in quotes
)
)
}x