# chat: fix autocompletion for usernames with dash \(\#7514\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/6b598a07d95ed65e88bd55e586977a5cac058d29)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 6b598a07d95ed65e88bd55e586977a5cac058d29

Requested commit: 6b598a07d95ed65e88bd55e586977a5cac058d29

Commit: 6b598a07d95ed65e88bd55e586977a5cac058d29

Tree: 836722e3bb5094653477acff05de9f428bfc321a

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
chat: fix autocompletion for usernames with dash (#7514)

Github usernames are allowed to contain `-`, but the autocompletion was
not working correctly.
We added `-` as an allowed character for markdown files. We are not
aware of any completions for markdown files, so this should be fine to
add.


Before:

![image](https://github.com/zed-industries/zed/assets/53836821/5b456ed6-3098-48e8-90db-f5f42b4aa535)

After:

![image](https://github.com/zed-industries/zed/assets/53836821/a544f465-0b68-46f5-9a15-83b4c755c3c0)


Release Notes:

- Fixed autocompletion for usernames with dash character in the chat
message editor

Co-authored-by: Remco Smits <62463826+RemcoSmitsDev@users.noreply.github.com>
```

## Parents

- [c1ada087b47c87d1d4e02543fca8ac3cb7502d1e](https://git.cafe/gitcafe/zed/commit/c1ada087b47c87d1d4e02543fca8ac3cb7502d1e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/6b598a07d95ed65e88bd55e586977a5cac058d29?format=markdown)
