Skip to content
Snippets Groups Projects
Commit a4147af6 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

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

parent 28f0ffe3
1 merge request!5224Fix markdown rendering for label references
Pipeline #
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment