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

Fix/giphy search #53

Merged
merged 6 commits into from Dec 23, 2016
Merged

Fix/giphy search #53

merged 6 commits into from Dec 23, 2016

Conversation

CrazyLemon
Copy link
Member

Pls merge this and ignore the mess with commits... ktnx

@CrazyLemon
Copy link
Member Author

@zdobersek ping

@zdobersek
Copy link
Contributor

hai

if count[0] > 0
gif_id = $(".hoverable-gif a").eq(0).attr("data-id")
r.reply "http://media.giphy.com/media/#{gif_id}/giphy.gif"
url = "http://api.giphy.com/v1/gifs/search?q=#{encodeURI(match[1].replace(/[^a-z0-9\s]/g,"").replace(/\s\s+/g, "+"))}&api_key=dc6zaTOxFJmzC"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/^[a-z0-9\s]/g ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/[^a-zA-Z0-9\s/g ?

@zdobersek
Copy link
Contributor

This is still wrong, but because it's you, I'll allow it.

@zdobersek zdobersek merged commit 97914ae into master Dec 23, 2016
@dz0ny dz0ny deleted the fix/giphy-search branch January 3, 2017 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants