Regex ignores whitespaces now and added all fallback pages
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
function test() {
|
||||
let input_field = document.getElementById("email_input");
|
||||
let input = input_field.value;
|
||||
if (!input.match("[a-z]+\\.[a-z]+@adolfinum+\\.de$")) {
|
||||
if (!input.trim().match("[a-z]+\\.[a-z]+@adolfinum+\\.de$")) {
|
||||
input_field.value = "";
|
||||
alert("Die Email-Adresse \"" + input + "\" entspricht nicht den Vorgaben");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user