add message empty space not allowed

main
alexanderroese 2024-08-13 23:08:54 +02:00
parent 702cb8f989
commit 72aad3bc7a
1 changed files with 1 additions and 1 deletions

View File

@ -582,7 +582,7 @@
if (!emojisSupported && emojiRegex.test(value)) {
inputLabel.textContent = 'Emojis werden bei diesem Typ nicht unterstützt. Bitte wechsle zu "Mit Hintergrund"';
inputLabel.style.color = 'red';
} else if (!emojisSupported && text.indexOf(" ") === -1) {
} else if (!emojisSupported && text.indexOf(" ") !== -1) {
inputLabel.textContent = 'Leerzeichen werden bei diesem Typ nicht unterstützt. Bitte wechsle zu "Mit Hintergrund"';
inputLabel.style.color = 'red';
}