function _indexOfNonWhitespaceCharacter()

in tools/PasswordRulesParser.js [267:277]


function _indexOfNonWhitespaceCharacter(input, position = 0)
{
    console.assert(position >= 0);
    console.assert(position <= input.length);

    let length = input.length;
    while (position < length && _isASCIIWhitespace(input[position]))
        ++position;

    return position;
}