web/wp-admin/js/password-strength-meter.dev.js
branchwordpress
changeset 132 4d4862461b8d
parent 109 03b0d1493584
--- a/web/wp-admin/js/password-strength-meter.dev.js	Tue Feb 02 14:45:47 2010 +0000
+++ b/web/wp-admin/js/password-strength-meter.dev.js	Tue Feb 02 15:44:16 2010 +0000
@@ -1,21 +1,21 @@
-// Password strength meter
-function passwordStrength(password,username) {
-    var shortPass = 1, badPass = 2, goodPass = 3, strongPass = 4, symbolSize = 0, natLog, score;
-
-	//password < 4
-    if (password.length < 4 ) { return shortPass };
-
-    //password == username
-    if (password.toLowerCase()==username.toLowerCase()) return badPass;
-
-	if (password.match(/[0-9]/)) symbolSize +=10;
-	if (password.match(/[a-z]/)) symbolSize +=26;
-	if (password.match(/[A-Z]/)) symbolSize +=26;
-	if (password.match(/[^a-zA-Z0-9]/)) symbolSize +=31;
-
-	natLog = Math.log( Math.pow(symbolSize,password.length) );
-	score = natLog / Math.LN2;
-	if (score < 40 )  return badPass
-	if (score < 56 )  return goodPass
-    return strongPass;
-}
+// Password strength meter
+function passwordStrength(password,username) {
+    var shortPass = 1, badPass = 2, goodPass = 3, strongPass = 4, symbolSize = 0, natLog, score;
+
+	//password < 4
+    if (password.length < 4 ) { return shortPass };
+
+    //password == username
+    if (password.toLowerCase()==username.toLowerCase()) return badPass;
+
+	if (password.match(/[0-9]/)) symbolSize +=10;
+	if (password.match(/[a-z]/)) symbolSize +=26;
+	if (password.match(/[A-Z]/)) symbolSize +=26;
+	if (password.match(/[^a-zA-Z0-9]/)) symbolSize +=31;
+
+	natLog = Math.log( Math.pow(symbolSize,password.length) );
+	score = natLog / Math.LN2;
+	if (score < 40 )  return badPass
+	if (score < 56 )  return goodPass
+    return strongPass;
+}