-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Special characters #30
Comments
Be warned, the 0.2 version contains a lot of gotcha's. For instance, the progressbar is blue instead of red for weak passwords because the wrong classes are used. (Line 183/184, the error is obvious when comparing to the lines below) It also tends to ignore a lot of special characters because it uses a regex with a very limited subset of special characters. I believe I fixed that by using regexes like After some difficulty with (very) outdated dependencies, I just managed to get the 0.3 version working, which still contains the escape issue. |
To fix special char bug: To fix the blue color bar bug:
Cheers. |
I found @YoshiDatoutou's solution wasn't working for me, I suspect it's GitHub messing with the formatting though:
was the line I had to use. |
When the password contains generated special characters (like '('), it crashed. We had to implemented something like this:
http://stackoverflow.com/questions/3446170/escape-string-for-use-in-javascript-regex
on line 133 of the 0.2 version. I have no idea wether this has been fixed in 0.3, because bower could not fetch that version. That version has also not yet been 'compiled' (minified).
The text was updated successfully, but these errors were encountered: