WordPress/wp-admin/js/password-strength-meter.min.js
Bot (Assets) 6e798324e9 New develop.svn.wordpress.org repository based on the old core.svn repository.
* All WordPress files move to a src/ directory.
 * New task runner (Grunt), configured to copy a built WordPress to build/.
 * svn:ignore and .gitignore for Gruntfile.js, wp-config.php, and node.js.
 * Remove Akismet external from develop.svn. Still exists in core.svn.
 * Drop minified files from src/. The build process will now generate these.

props koop.
see #24976.

and see http://wp.me/p2AvED-1AI.


Built from https://develop.svn.wordpress.org/trunk@25001


git-svn-id: http://core.svn.wordpress.org/trunk@25001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-07 05:49:02 +00:00

1 line
314 B
JavaScript

function passwordStrength(a,b,c){var d,e,f=1,g=2,h=3,i=4,j=5,k=0;return a!=c&&c.length>0?j:a.length<4?f:a.toLowerCase()==b.toLowerCase()?g:(a.match(/[0-9]/)&&(k+=10),a.match(/[a-z]/)&&(k+=26),a.match(/[A-Z]/)&&(k+=26),a.match(/[^a-zA-Z0-9]/)&&(k+=31),d=Math.log(Math.pow(k,a.length)),e=d/Math.LN2,40>e?g:56>e?h:i)}