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

parent 28f0ffe3
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment