add message empty space not allowed
parent
72aad3bc7a
commit
985b2e7f82
|
@ -582,7 +582,7 @@
|
||||||
if (!emojisSupported && emojiRegex.test(value)) {
|
if (!emojisSupported && emojiRegex.test(value)) {
|
||||||
inputLabel.textContent = 'Emojis werden bei diesem Typ nicht unterstützt. Bitte wechsle zu "Mit Hintergrund"';
|
inputLabel.textContent = 'Emojis werden bei diesem Typ nicht unterstützt. Bitte wechsle zu "Mit Hintergrund"';
|
||||||
inputLabel.style.color = 'red';
|
inputLabel.style.color = 'red';
|
||||||
} else if (!emojisSupported && text.indexOf(" ") !== -1) {
|
} else if (!emojisSupported && value.indexOf(" ") !== -1) {
|
||||||
inputLabel.textContent = 'Leerzeichen werden bei diesem Typ nicht unterstützt. Bitte wechsle zu "Mit Hintergrund"';
|
inputLabel.textContent = 'Leerzeichen werden bei diesem Typ nicht unterstützt. Bitte wechsle zu "Mit Hintergrund"';
|
||||||
inputLabel.style.color = 'red';
|
inputLabel.style.color = 'red';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue