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 |
---|---|
![]() |
![]() |
![]() |
Closes #24961 (closed), #24473 (closed)