Pornsearch icon indicating copy to clipboard operation
Pornsearch copied to clipboard

Queries with multiple words are crashing with the Pornhub module

Open ratouney opened this issue 5 years ago • 1 comments

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 avatar Oct 21 '18 12:10 ratouney

@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.

LucasLeandro1204 avatar Oct 21 '18 23:10 LucasLeandro1204