/label command fails to wrap label in quotes if label contains an emoji+space at the beginning
Summary
Applying a label to an issue using the /label command fails to wrap quotes around the label when it includes emoji and space at the beginning
Steps to reproduce
Create a label with an emoji and space at the beginning like so
Type the /label command in a new/existing issue so that the available labels show
Select one of the labels that include an emoji + space at the beginning
Expected behavior
Expect the command to autocomplete like so
/label ~"🚧 wip"
Actual behavior
Command autocompletes like this instead
/label ~🚧 wip
Results of GitLab environment info
System information
System: Ubuntu 16.04
Current User: git
Using RVM: no
Ruby Version: 2.3.1p112
Gem Version: 2.6.6
Bundler Version:1.13.6
Rake Version: 10.5.0
Sidekiq Version:4.2.1
GitLab information
Version: 8.13.6
Revision: 69cda01
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://xxx
HTTP Clone URL: https://xxx
SSH Clone URL: git@xxx
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 3.6.6
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git