Merge branch 'develop' into chore/change-default-account

This commit is contained in:
Muhsin Keloth 2022-09-15 15:29:01 +05:30 committed by GitHub
commit a66e883cd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,11 +34,14 @@ export const hasEmojiSupport = () => {
}; };
export const removeEmoji = text => { export const removeEmoji = text => {
return text if (text) {
.replace( return text
/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g, .replace(
'' /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g,
) ''
.replace(/\s+/g, ' ') )
.trim(); .replace(/\s+/g, ' ')
.trim();
}
return '';
}; };