Simplify regex for string-based multi-word label surrounded in quotes

This commit is contained in:
Douglas Barbosa Alexandre 2016-07-13 16:01:27 -03:00
parent 28f0ffe387
commit a4147af674
1 changed files with 1 additions and 1 deletions

View File

@ -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