UNPKG

score-password

Version:

Returns a simple score for a password input

11 lines (9 loc) 240 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var doesNotRepeat = function doesNotRepeat(string) { var repeatingRegex = /(.)\1/; return !repeatingRegex.test(string); }; exports.default = doesNotRepeat;