relax username validation (#413)
this commit allows for matching accented characters, dots, '@' symbol, and other important things.v1.18.x
parent
0613b530e8
commit
5945ab1a0a
@ -0,0 +1,12 @@
|
|||||||
|
var assert = require('assert'),
|
||||||
|
utils = require('./../public/src/utils.js');
|
||||||
|
|
||||||
|
|
||||||
|
describe("Utility Methods", function(){
|
||||||
|
describe("username validation", function(){
|
||||||
|
it("accepts latin-1 characters", function(){
|
||||||
|
var username = "John\"'-. Doeäâèéë1234";
|
||||||
|
assert(utils.isUserNameValid(username), 'invalid username');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in New Issue