forked from audy/memelicious
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gabe Berke-Williams
committed
Oct 16, 2011
1 parent
0039d0f
commit 0541a6c
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
module Memetron | ||
MEMES = { | ||
# "a wild ruby library appears" | ||
:pokemon => /a wild (.*) appears/i, | ||
:pokemon => /a wild (.+) appears/i, | ||
|
||
# "I don't always write regexp but when I do they break" | ||
:dos_equis => /I don'?t always (.*) but when I do? (.*)/i, | ||
:dos_equis => /I don'?t always (.+) but when I do? (.+)/i, | ||
|
||
# "North Korea is best Korea" | ||
:is_best => /(\w*\b) (\w*\b) is best (\w*\b)/i, | ||
:is_best => /(\w+\b) (\w+\b) is best (\w+\b)/i, | ||
|
||
# Yo dawg I heard you like regexp so I put a regexp in your regexp so you can blah | ||
:yo_dawg => /yo dawg I hea?rd you like (.*) so I put a (.*) in your (.*) so you can (.*) while you (.*)/i, | ||
:yo_dawg => /yo dawg I hea?rd you like (.+) so I put a (.+) in your (.+) so you can (.+) while you (.+)/i, | ||
|
||
# cant tell if this project is going to go anywhere or just end up on the bottom of my github profile | ||
# not sure if blah or blah | ||
:fry => /(can'?t tell|not sure) if (.*) or (.*)/i, | ||
:fry => /(can'?t tell|not sure) if (.+) or (.+)/i, | ||
|
||
# lets take all the memes and put them over here | ||
:patrick => /let'?s take all the (.*) and put them over here/i, | ||
:patrick => /let'?s take all the (.+) and put them over here/i, | ||
|
||
# soon | ||
:soon => /soon/i, | ||
# "soon" or "soon." or "soon..." | ||
:soon => /^soon(\.|\.{3})?$/i, | ||
|
||
# Y U NO? | ||
:y_u_no? => /(.*) Y U NO (.*)?/i, | ||
# Y U NO DO THIS? | ||
:y_u_no? => /(.*)Y U NO (.*)\?/i, | ||
} | ||
end |