# UserNameSuggester suggests names with trailing underscores

**URL:** https://meta.discourse.org/t/usernamesuggester-suggests-names-with-trailing-underscores/32964
**Category:** Bug
**Created:** [September 6, 2015, 5:55pm UTC](https://meta.discourse.org/t/usernamesuggester-suggests-names-with-trailing-underscores/32964 "2015-09-06T17:55:50Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [September 11, 2015, 10:55am UTC](https://meta.discourse.org/t/usernamesuggester-suggests-names-with-trailing-underscores/32964/3 "2015-09-11T10:55:43Z")

</div>

Trailing underscore in username is now allowed:

[https://github.com/discourse/discourse/commit/b3d2982be7d40ff632afcd1c3cbe8c9e78a632be](https://github.com/discourse/discourse/commit/b3d2982be7d40ff632afcd1c3cbe8c9e78a632be)

However `UserNameSuggester` still suggests usernames with a sequence of 2 or more special chars (like `arpit__jalan`) which is not valid. ~~I am working on a fix for that.~~ Fixed:

[https://github.com/discourse/discourse/commit/d73d4d476984d6de647423d3869cfdb1d72c427a](https://github.com/discourse/discourse/commit/d73d4d476984d6de647423d3869cfdb1d72c427a)

---

_[View the full topic](https://meta.discourse.org/t/usernamesuggester-suggests-names-with-trailing-underscores/32964)._
