Pornsearch
Pornsearch copied to clipboard
Queries with multiple words are crashing with the Pornhub module
When I tried to make a search with multiple tags it crashed telling me that "replace" was undefined.
To be precise, it's in Porhub.js
at line 75.
thumb: data.find('img').attr('data-mediumthumb').replace(/\([^)]*\)/g, ''),
I'd guess the regex in the Gif part would do the same error but I'm not using it...
In any case, for now I just had to remove the replace part and deal with it...
@ratouney I could not reproduce the error, but I imagine what's the cause, and it's not related to search with multiple words. It's fixed (or at least should be) now, may you give it a try? Thanks =)
Already published at NPM, I'll make a release here asap.