Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-07-13 22:01:27 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-07-13 22:01:27 +0300
commita4147af674e851d50c71e982475f04195d1a3015 (patch)
tree24952456ccb7ced64a5516f2a091a361cdd0cfa7 /app/models/label.rb
parent28f0ffe38717167d4cae2407eda2755b78c14357 (diff)
Simplify regex for string-based multi-word label surrounded in quotes
Diffstat (limited to 'app/models/label.rb')
-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 1199793456d..35e678001dc 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