add info message for space between emoji and text
parent
c13aa70a39
commit
290de26f3a
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue