-
Notifications
You must be signed in to change notification settings - Fork 238
emojify-parser proof of concept #93
base: develop
Are you sure you want to change the base?
Conversation
So is emoji-parser the same code that was in emojify.js previously? And what about stuff like |
Not quite, the previous code uses a regular expression to replace the Youre right about |
I just read over the jsdom README and this again.
What's wrong with that if |
I guess its just overkill to require a dom to concatenate strings if youre using |
But we'd have it anyway right? We'd require it for traversing so why not use it? So it could be safer? Maybe I'm missing something. |
would you traverse for |
Ha sorry 😝🔨. I was thrown off by thinking of my own use case; I'm only using |
haha, no worries. |
Does this have any appreciable effect performance-wise? I would think not, but it would be nice to know? I'll admit, I was a bit against it to begin with but I'm slowly warming to the idea. |
I cant see it having a massive effect. Tree traversal would cause the biggest change in performance, but thats already happened in #99. |
Alrighty then, I think it's the right thing to do, looking forward to seeing some more commits 😄 |
DO NOT MERGE THIS
This is a proof of concept that uses emojify-parser, so that the emojify function only has to worry about dom manipulation.
To use with nodejs, you would have to use jsdom like this:
Let me know what you think and whether or not I should carry on and make this fit for merging.