From 6a509a51db7dbe90887541f54b5928ebfaf62023 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 14 Apr 2015 12:23:23 -0400 Subject: [PATCH] fixes #2992 --- public/src/client/register.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/src/client/register.js b/public/src/client/register.js index cab41bb72f..6955fcb989 100644 --- a/public/src/client/register.js +++ b/public/src/client/register.js @@ -24,8 +24,9 @@ define('forum/register', ['csrf', 'translator'], function(csrf, translator) { } }); + // Update the "others can mention you via" text username.on('keyup', function() { - $('#yourUsername').text(this.value.length > 0 ? this.value : 'username'); + $('#yourUsername').text(this.value.length > 0 ? utils.slugify(this.value) : 'username'); }); username.on('blur', function() {