add info message for space between emoji and text

main
alexanderroese 2024-08-14 00:28:06 +02:00
parent c13aa70a39
commit 290de26f3a
1 changed files with 3 additions and 3 deletions

View File

@ -560,8 +560,8 @@
// check if the regex finds a matching pattern // check if the regex finds a matching pattern
let match; let match;
while ((match = regex.exec(text)) !== null) { while ((match = regex.exec(text)) !== null) {
if (match.index + match[0].length < text.length && text[match.index + match[0].length] !== ' ') { if (match[2] !== ' ' && match[2] !== '') {
return true return false;
} }
} }