We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6446419 commit 0f2b9e3Copy full SHA for 0f2b9e3
1 file changed
packages/contentstack-audit/src/modules/entries.ts
@@ -842,7 +842,7 @@ export default class Entries {
842
* Else empty array
843
*/
844
removeEmojiAndImages(str: string) {
845
- return str.replace(
+ return str?.replace(
846
/[\p{Emoji}\p{Emoji_Presentation}\p{Emoji_Modifier}\p{Emoji_Modifier_Base}\p{Emoji_Component}]+/gu,
847
'',
848
);
0 commit comments