# Mentiong usernames with trailing underscore does not work

**URL:** <https://meta.discourse.org/t/mentiong-usernames-with-trailing-underscore-does-not-work/34290>\
**Category:** Bug\
**Tags:** markdown\
**Created:** [8 Ottobre 2015, 9:38pm UTC](https://meta.discourse.org/t/mentiong-usernames-with-trailing-underscore-does-not-work/34290 "2015-10-08T21:38:37Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Blaisorblade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blaisorblade/32/107357_2.png) [@Blaisorblade](https://meta.discourse.org/u/Blaisorblade)\
**Post date:** [8 Ottobre 2015, 9:38pm UTC](https://meta.discourse.org/t/mentiong-usernames-with-trailing-underscore-does-not-work/34290/1 "2015-10-08T21:38:38Z")

</div>

Continuing the discussion from [UserNameSuggester suggests names with trailing underscores](https://meta.discourse.org/t/usernamesuggester-suggests-names-with-trailing-underscores/32964/3):

> [@UserNameSuggester suggests names with trailing underscores](https://meta.discourse.org/t/usernamesuggester-suggests-names-with-trailing-underscores/32964/3):
>
> Trailing underscore in username is now allowed:
> 
> [FIX: Allow trailing `_` because we used to. · discourse/discourse@b3d2982 · GitHub](https://github.com/discourse/discourse/commit/b3d2982be7d40ff632afcd1c3cbe8c9e78a632be)

But can you mention with `@` a username ending in `_`? With Discourse 1.4.1 it doesn’t seem to work, or at least the preview doesn’t format the attempted mention as a mention. If then you use `@username_, @another_user` (without a space between underscore and comma, and with another underscore-containing username afterwards), things work even less well — the text between underscores is formatted in italic (because Markdown parsing triggers), and both mentions break. This bug is triggered when expanding `@group`, with a group containing such usernames; the usernames happen to be output in that bug-triggering order.

---

_[View the full topic](https://meta.discourse.org/t/mentiong-usernames-with-trailing-underscore-does-not-work/34290)._
