andrerpena / chatjs

Platform-independent jQuery plugin for chatting
MIT License
184 stars 91 forks source link

Emoticons Replace Only Works for the First One (Minor Bug) #20

Open eniebla opened 8 years ago

eniebla commented 8 years ago

If you send :) :) :) only the first one is replaced for an emoticon

FILE: jquery.chatjs.messageboard.js var emoticons = [ { pattern: ":-)", cssClass: "happy" },

MUST BE { pattern: /:-)/g, cssClass: "happy" },

replace all the "..." for /...../g

Hope this helps

rpaschoal commented 8 years ago

@eniebla, thank you! I did not notice this happening before!

I guess this project is getting very visible and we should put more effort on it to take out all those minor bugs...

Andrewer11 commented 6 years ago

Working emoticons: :) :( :D :| I thinks thats all