嗨,我有一个带有表情符号的评论系统,它的工作原理非常好。如果您发布这样的链接https://www.somelinke.com
,它将选择:/
https 之后的并将其更改为表情符号。如何仅将旁边有空格的字符更改为表情符号?
这就是我将它设置为数组的方式:
b : new Array("angel","colonthree","confused","cry","devil","frown","gasp","glasses","grin","grumpy","heart","kiki","kiss","pacman","smile","squint","sunglasses","tongue","unsure","upset","wink"), // Emotions Type
s : new Array(" o:) ", ":3 "," o.O ",":'(","3:)",":(",":O","8)",":D",">:(","<3","^_^",":*",":v",":)","-_-","8|",":p",":/",">:O",";)"),
我猜必须在新数组的每一侧放置某种符号?