Skip to content

Fix the label quote-wrapping in GfmAutoComplete

What does this MR do?

This fixes an issue where labels that include a space would not be wrapped in quotes. The logic has been changed to detect "simple labels" (labels without spaces), and wrap the label in quotes if it's not one. We use the regex from Label.reference_pattern in GitLab.GfmAutoComplete.

Screenshots (if relevant)

Before After
Snip20161205_2 Screen_Shot_2016-12-06_at_13.27.18
Screen_Shot_2016-12-06_at_13.27.25

Closes #24961 (closed), #24473 (closed)

Merge request reports