https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12617

--- Comment #20 from David Cook <dc...@prosentient.com.au> ---
Ok because I'm insufferable...

The following passes:

<html>
    <head>
        <script>
            var min_lenght = 3;
            var regex_text =
"(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%\^&*(){}[\\]<>?/|\-]).{"+min_lenght+",}";
            var pattern_regex = new RegExp(regex_text);
            var output = pattern_regex.test("Aa1!");
            alert(output);
        </script>
    </head>
</html>

The following fails:

<html>
    <head>
        <script>
            var min_lenght = 3;
            var regex_text =
"(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%\^&*(){}[\\]<>?/|\-]).{"+min_lenght+",}";
            var pattern_regex = new RegExp(regex_text);
            var output = pattern_regex.test("Ää1!");
            alert(output);
        </script>
    </head>
</html>

That's not good.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to