downgoon / passport

a generic passport restful api for web sites and mobile apps
0 stars 0 forks source link

password regex not works in expected way #28

Closed downgoon closed 7 years ago

downgoon commented 7 years ago

privious regex:

[^\u4e00-\u9fa5 ]{8,16}

a text named 12345678901234567890 can match regex.

changed regex:

^[^\u4e00-\u9fa5 ]{8,16}$