Added some tests
This commit is contained in:
parent
47211fb32c
commit
4efcda1b41
2 changed files with 75 additions and 2 deletions
|
@ -142,7 +142,7 @@ const parseAttachment = (data) => {
|
|||
|
||||
return output
|
||||
}
|
||||
const addEmojis = (string, emojis) => {
|
||||
export const addEmojis = (string, emojis) => {
|
||||
return emojis.reduce((acc, emoji) => {
|
||||
return acc.replace(
|
||||
new RegExp(`:${emoji.shortcode}:`, 'g'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue