Skip to content
This repository has been archived by the owner on Oct 3, 2018. It is now read-only.

replace() function is not working without preceding space before emoji #150

Open
azharuniverse opened this issue Aug 31, 2015 · 3 comments

Comments

@azharuniverse
Copy link

emojify.run() in v0.8.0 is working correctly. but using emojify.replace() in v1.0.5 is failing.

Not Working without using space

emojify.replace('sdfgsdfgasdf:smirk:zdffds:flushed::flushed:zsfd');
"sdfgsdfgasdf:smirk:zdffds:flushed::flushed:zsfd"

Working when space is inserted

emojify.replace('sdfgsdfgasdf :smirk:zdffds:flushed: :flushed:zsfd');
"sdfgsdfgasdf <img align='absmiddle' alt=':smirk:' class='emoji' src='http://localhost/res/emoji/smirk.png' title=':smirk:' />zdffds:flushed: <img align='absmiddle' alt=':flushed:' class='emoji' src='http://localhost/res/emoji/flushed.png' title=':flushed:' />zsfd"
@azharuniverse
Copy link
Author

Please fix this issue soon if possible. I am using it in my Chat Application. and without emojis chat is dry, tasteless. Also I don't want my users to be concerned about this space thing. I found your library very easy to integrate and useful. Please fix it if it can be fixed.

@Dodelkin
Copy link

Dodelkin commented Oct 7, 2015

I have the same problem, please fix it.
Regards

@hassankhan
Copy link
Contributor

I'm really sorry guys, if anyone can come up with a PR that'd be mighty helpful - I'm not sure any of the contributors have much spare time at the moment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants