Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queries with multiple words are crashing with the Pornhub module #27

Open
ratouney opened this issue Oct 21, 2018 · 1 comment
Open

Comments

@ratouney
Copy link

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 ratouney changed the title Queries with multiple words are crashing the query.... Queries with multiple words are crashing with the Pornhub module Oct 21, 2018
@LucasLeandro1204
Copy link
Owner

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

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

No branches or pull requests

2 participants