Skip to content

Commit d242dd9

Browse files
committed
fix: sequential default emojis should be displayed
1 parent 6e451dd commit d242dd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/contentParser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function parseContentWithEmoji(content, includeEmoji = true) {
1515
// var regex = new RegExp(/xyz/, 'i');
1616
// The second parameter for RegExp doesn't work below iOS 10
1717
let contentWithEmoji = content.replace(/\[mobcent_phiz=(https?:\/\/[^\]]+\.(?:jpg|png|gif))\]/g, '___emojiBoundary___$1___emojiBoundary___')
18-
.replace(/(\[.+\])/g, '___emojiBoundary___$1___emojiBoundary___');
18+
.replace(/(\[[^\]]+\])/g, '___emojiBoundary___$1___emojiBoundary___');
1919
let contentEmojiArray = contentWithEmoji.split('___emojiBoundary___');
2020

2121
return contentEmojiArray.filter(item => item.trim()).map((item, index) => {

0 commit comments

Comments
 (0)