Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Revert "Remove chain detection from Spice (it's moving to Deep) (#3534)…
Browse files Browse the repository at this point in the history
…" (#3535)

This reverts commit 2506619.
  • Loading branch information
kablamo authored and duendex committed Aug 28, 2018
1 parent 2506619 commit 1077f70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
3 changes: 2 additions & 1 deletion lib/DDG/Spice/Maps/Places.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ spice to => 'https://duckduckgo.com/local.js?q=$1&cb={{callback}}';
spice proxy_cache_valid => "418 1d";
spice is_cached => 0;

my $chains_re = share('chains_re')->slurp;
my $places_re = qr/(local|near|near me|around|around me|here|locally|nearby|close|closest|nearest|locations?|restaurants?)/;
triggers query_lc => qr/(^$places_re|$places_re$)/s;
triggers query_lc => qr/(^$chains_re$|^$places_re|$places_re$)/s;

my %skip_remainders = map {$_ => 0} ('current', 'time');

Expand Down
1 change: 1 addition & 0 deletions share/spice/maps/places/chains_re
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(?^u:\b((?^u:(?i:(?=[179abcdefghijklmnopqrstuvwxyzæč])(?:j(?:u(?:st\ (?:for\ fun|jeans)|les\ pizza|an\ valdez\ cafe|bilant\ foodworks)|e(?:r(?:ry\'s\ food|ónimo\ martin)s|wel|an\ coutu\ group|no\'s\ pizza)|\.(?:\ c\.\ penney|crew)|a(?:c(?:obson\'s|k\ in\ the\ box)|m(?:es\ purdey\ \&\ sons|ba\ juice)|ycar|in\ group\ of\ industries)|o(?:hn(?:\ (?:lewis|a\.\ brown)|ny\ rockets|stons\ of\ elgin|\'s\ incredible\ pizza)|yce(?:\ boutique|s\ 365)|(?:pling|s\ alukka\ \&\ son|\-ann\ store)s|urneyed|e\ fresh|llibee)|jb\ sports|ct600)|l(?:a(?:\ (?:(?:farin|petite\ boulangeri)e|curacao)|n(?:d(?:ry\'s\ restaurants|\ of\ leather)|e\ crawford)|m(?:(?:ont|ps\ plu)s|iplast)|uren\ jones|coste|(?:vazz|rry\ smith\ itali)a|\-z\-boy)|o(?:n(?:g(?:(?:\ john\ silver|o)\'s|horn\ steakhouse)|don\ drugs)|we(?:\'s|s\ menswear)|uis\ (?:vuitton|delhaize\ group)|tte(?:\ mart|ria)|v(?:e\'s\ travel\ stops\ \&\ country\ store|ing\ outdoor)s|eb\'s|jas\ renner|ft)|\.(?:l\.bean|a\.\ joe\ department\ store)|i(?:qu(?:orland|id\ nutrition)|on(?:el\ kiddie\ city|\'s\ choice)|(?:feway\ christian\ resourc|berty\ gam)es|(?:ncraf|ving\ direc)t|dl|ttle\ caesars\ pizza)|e(?:\ (?:relais\ des\ mousquetaires|mont\ saint\ michel|lis\ blanc|boulanger)|(?:wis\'|gal\ sea\ food|s\ mousquetaire)s|chmere|(?:e\'s\ famous\ recipe\ chicke|roy\ merli)n|nta|aderboard\ golf)|uxottica|vmh|\&l\ hawaiian\ barbecue|leitmotif)|m(?:i(?:c(?:ro(?:soft|mania)|hael(?:\ hill\ jeweller|s))|t(?:sukoshi|re\ 10)|g(?:ros\ türk|hty\ ape)|ller\'s\ department\ store|racle\ food\ mart|dtown\ comics|mi\ london)|a(?:r(?:k(?:s\ \&\ spencer|et\ basket|\'s\ work\ wearhouse)|tin(?:\ \+\ osa|\'s\ super\ markets)|(?:c\'|shall)s|rybrown|mon\ group|isa\ s\.a\.)|c(?:(?:y\'|\'s\ convenience\ store)s|aroni\ grill)|t(?:suzakaya|ches\ fashion|tress\ giant)|s(?:s(?:imo\ dutti|mart)|ters\ home\ improvement)|o(?:ye\ international|z)|(?:ison\ blanch|jestic\ win)e|(?:plin\ electronic|mas\ \&\ papa|gnet\ kitchen|urice)s|xima\ group|de\ in\ oregon|nchu\ wok)|o(?:r(?:risons|ton\'s\ restaurant\ group|gan|e)|vie(?:\ gallery|towne)|del(?:o\ continent|zon)e|s(?:aic\ fashions|\ burger)|ntgomery\ ward|e\'s\ southwest\ grill|llie\ stone\'s\ markets|od\ media)|e(?:r(?:idian\ energy|vyns)|tro(?:\ ag|jaya)?|n(?:ard|chie\')s|gamart|ijer)|u(?:s(?:grave\ group|ic\ and\ video\ club)|rray\ (?:auto\ group|chevrolet)|ji|gg\ \&\ bean|zz\ buzz)|c(?:arthurglen\ group|café|(?:\ sport|donald\')s|ginty\'s\ department\ store)|y(?:s(?:upermarket|terious\ galaxy)|din)|r(?:\.\ (?:s(?:andy|ub)|greek)|\ case)|øllergruppen|k\ one|ás\ club|\&co\.|ph\ group)|s(?:a(?:k(?:s\ fifth\ avenue|owitz)|i(?:n(?:sbury\'s|t\-gobain)|zeriya)|m(?:\'s\ (?:club|warehouse)|\ (?:ash|moon))|f(?:eway|ilo)|n(?:dy\'s|yo\ shokai\ new\ york)|ve(?:\ mart\ supermarkets|\-a\-lot)|l(?:ty\ dog\ surf\ shops|ling)|rku\ japan)|u(?:b(?:way|marina)|p(?:er(?:value?|mercados\ gigante|(?:bes|targe)t|coop|drug)|plyco\ kerala)|n(?:\ television\ and\ appliances|ing\ appliance)|ck\ uk)|t(?:a(?:r(?:bucks|\ market)|ple(?:s|\ design)|nley\ gibbons|sh\ tea|toil\ fuel\ \&\ retail)|e(?:r(?:n\'|ling\ jeweler)s|(?:wart\'s\ shop|ve\ \&\ barry\')s|in\ mart|ak\ \'n\ shake)|r(?:adivarius|oud\'s\ mercantile)|u(?:ssy|dent\ biryani)|ix\,\ baer\,\ fuller|\.\ vincent\ de\ paul\ thrift\ store)|h(?:o(?:p(?:pers\ (?:drug\ mart|food\ \&\ pharmacy)|\ (?:direct\ group|\'n\ save)|rite)|e(?:mall|\ show))|a(?:w\'s(?:\ and\ star\ market)?|(?:key\'s\ pizz|s)a|hrvand\ chain\ stores)|e(?:etz|ng\ siong))|e(?:a(?:rs(?:\ (?:canada|holdings))?|gull\ book)|(?:lfridge|ven\ \&\ i\ holding)s|cond\ cup|iyu|rvice\ merchandise|michem|dmoi\ kontinent)|o(?:f(?:a\ workshop|fe)|go\ (?:hong\ kong|\&\ seibu)|nic\ drive\-in|beys|merfield|ciété\ des\ alcools\ du\ québec|riana|ul\ daddy)|c(?:h(?:(?:nuck|ofield)s|mitt\ music)|m\ holdings|ott\'s\ food\ \&\ pharmacy|appino)|p(?:e(?:edway|ncer\'s\ retail|c\'s\ music)|rou(?:se\-reitz|ts\ farmers\ market)|o(?:rts(?:man\'s\ warehouse|\ authority)|leto)|ar|ur\ steak\ ranches)|m(?:\ (?:(?:prime\ holding|investment)s|department\ store|(?:hy|su)permarket)|a(?:rt\ club|ll\ dog\ electronics|shburger)|oothie\ king)|i(?:mpl(?:e\ power|ifydigital|y\ market)|(?:gnet\ jeweler|bley\')s|t\ \'n\ sleep|ncere\ department\ store)|k(?:aggs\ companies|ulls\ unlimited\ international)|l(?:eep(?:\ country\ canada|y\'s)|ackers\ cds\ and\ games)|n(?:appy\ (?:tomato\ pizza|snaps)|uffy\'s\ malt\ shop)|(?:wisher\ hygien|quare\ pi)e|yms|\.a\.c\.i\.\ falabella|vensson|barro)|t(?:a(?:n(?:dy|gs)|co\ (?:b(?:ueno|ell)|ti(?:co|me)|cabana|del\ mar|john\'s|mayo)|r(?:get(?:\ (?:australi|canad)a)?|ocash)|i\ lin\ radio\ service|kken\'s\ shoes|vria\-v|stee\-freez)|e(?:sco(?:\ ireland)?|a(?:ny|vana|\ collection)|xas\ (?:roadhouse|de\ brazil|(?:steakhouse\ \&\ saloo|chicke)n)|d(?:\'s\ montana\ grill|eschi\ food\ shops)|kserve|pperman\'s|gut\…)|h(?:e\ (?:b(?:(?:eer\ stor|ook\ peopl)e|rick|lues\ jean\ bar)|w(?:arehouse\ group|ooster\ book|hisky\ barrel)|c(?:o(?:\-operative\ (?:f(?:ood|uneralcare)|motor\ group)|ffee\ club|unter|ntainer\ store)|heesecake\ factory)|s(?:ou(?:rce|th\ butt)|ultan\ center|(?:torehous|portsman\'s\ guid)e)|r(?:eject\ shop|ange\ home\ and\ leisure)|h(?:(?:ome\ depo|empes)t|ut\ group)|o(?:fficers\ club|riginal\ factory\ shop)|p(?:opular|erfume\ shop)|great\ atlantic\ \&\ pacific\ tea|(?:ups\ stor|north\ fac|freaky\ bean\ coffe)e|integer\ group)|inkgeek)|r(?:a(?:(?:der\ joe\'|vis\ perkin)s|ctor\ supply)|ent|ondos|ialpay)|o(?:p(?:s(?:hop|\ friendly\ markets)|ps\ tiles)|m(?:s\ shoes|\'s\ convenience\ store|\ thumb)|(?:ys\ \"r\"\ u|(?:ny\ roma|go)\')s|by\ keith\'s\ i\ love\ this\ bar\ \&\ grill)|\ (?:\&\ t\ supermarket|j\ hughes)|u(?:esday\ morning|rtle\ mountain)|(?:im\ horton|(?:wo\ gu|gi\ frida)y)s|cby|ōkyōdō\ shoten|(?:v\-alvitécnic|ía\ s)a|øj\ \&\ sko|j\ maxx)|w(?:a(?:l(?:mart(?:\ (?:m(?:éxico|arket)|canada))?|greens(?:\ pharmacy)?|denbooks)|t(?:(?:erstone|son)\'s|t\ \&\ shand)|wa|(?:k|hoo\'s\ fish\ tac)o|rehouse\ shoe\ sale)|o(?:o(?:lworths(?:\ group)?|t|ds\ coffee)|w\ sight\ \&\ sound|lf\ \&\ badger)|i(?:n(?:n(?:\-dixie|ers)|g(?:\ on|stop))|l(?:liams(?:\ (?:fresh\ cafe|\&\ griffin)|\-sonoma)|sons\ leather)|ckes|mpy|kipedia\:articles\ for\ creation\/incahoot)|h(?:ite\ (?:hen\ pantry|castle|spot)|ole\ foods\ market|ataburger)|e(?:l(?:lc(?:ome|hester)|spun\ retail)|ndy\'s(?:\ supa\ sundaes)?|bvan|(?:sfarmer|igel\')s|t\ seal|grow\ store)|(?:we\ niagara\ fall|ren\ kitchen)s)|k(?:m(?:art(?:\ australia)?|s\ tools)|i(?:n(?:g(?:\ (?:soopers\ \&\ city\ market|kullen)|fisher\ plc|s\ super\ markets)|tetsu\ department\ store)|tbag|k|pling\ brand|rkland\'s)|r(?:oger|esge\-newark|uidvat|ystal)|e(?:io|rala\ state\ beverages\ \(m\&m\)\ corporation|nny\ rogers\ roasters|y\ food)|o(?:hl\'|gan\ technologie|mu)s|a(?:n(?:sai\ super|esue)|t(?:z\ group\ of\ companies|hmandu)|l(?:eidoscoops|yan\ group)|ufland)|fc|(?:wik\ sav|\-bob\'s\ steakhous)e|vickly|\'s\ merchandise\ mart|lopfenstein\'s|(?:uala\ lumpur\ kepong\ berha|nockaroun)d|yochon)|p(?:i(?:zza\ (?:hut|schmizza|(?:patró|fusio)n|ranch)|(?:ck\ \'n\ pay\ store|er\ 1\ import)s|lot\ flying\ j|nkberry)|u(?:eblo\ supermarkets|blix|ll\ and\ bear|stak|rehmv|nk\'s\ backyard\ grill)|o(?:l(?:lo\ (?:campero|tropical)|o\ ralph\ lauren)|p(?:ular\ holding|eye)s|u(?:ndland|\ sheng\ international)|rt(?:\ city\ java|illo\'s)|well\'s\ books|tbelly)|r(?:i(?:m(?:ark|e\ restaurants)|szm|celine|ncess\ auto)|o(?:(?:gressive\ enterprise|xi)s|vogue|tect\-a\-bed|bka\ restaurant\ group)|e(?:t(?:\ a\ manger)?|stat)|ateek\ apparels)|a(?:t(?:hmark|(?:riot\ game|\ \&\ oscar\')s)|n(?:chero\'?s\ mexican\ grill|era\ bread|taloon\ retail\ india|da\ express)|p(?:a\ (?:gino\'s|john\'s\ pizza)|erchase)|r(?:k(?:nshop|son)|co|adise\ bakery\ \&\ café)|y(?:\ (?:\'n\ save|less\ food\ markets)|less\ shoesource)|g(?:e\ one|ue\ menos)|cific\ (?:coffee|linen|sales)|v(?:ers\ shoe|ilion)s|sta(?:\ bravo|mania)|z\ oil|lmer\ and\ harvey|ule\ ka|k\'n\ save)|e(?:e(?:t\'s(?:\ coffee\ \&\ tea)?|k\ \&\ cloppenburg)|p(?:per\ lunch|kor)|t(?:c(?:o|etera)|r(?:ini\'s|o\ canada)|s(?:\ at\ home|mart)|land(?:\ discounts)?|\ food\ express)|oplesupport|nfield\ outdoor\ apparel|i\ wei\ asian\ diner|rkins)|l(?:a(?:y\ n\ trade|cemakers)|u(?:s|mgood\ food))|c\ world|pr|harmasave|ni\ digital\ media|yrrha\ jewelry)|a(?:l(?:d(?:i|ata)|l(?:(?:d|en\ broth)er|ied\ carpet)s|f(?:a\-beta\ vassilopoulos|red\ angelo)|(?:bertson|ghanim\ industrie|worth)s|imentation\ couche\-tard|pha\ beta|\ baik|oha\ petroleum|tex|macenes\ exito|addin\'s\ eatery)|s(?:da|sociated\ british\ foods|mclothing|os\.com|pen\ creek|hley\ furniture)|r(?:c(?:\'teryx|andor)|(?:(?:by|thur\ treacher)\'|go)s|my\ and\ air\ force\ exchange\ service|al\ ag|nold\ laver)|m(?:erica(?:n\ (?:s(?:tores|ignature)|eagle\ outfitters|apparel)|\'s\ incredible\ pizza)|cal|igo\ energy|rest)|n(?:n(?:\ (?:summers|\&\ hope|taylor)|a\'s\ taqueria)|thropologie|gus\ \&\ robertson)|u(?:to(?:grill|zone)|(?:cha|\ bon\ pai)n|relio\'s\ pizza)|p(?:ple(?:\ boutique|bee\'s)|ranga)|b(?:(?:r\ holding|t\ electronic)s|ercrombie\ \&\ fitch)|g(?:rokor|ainst\ all\ odds)|c(?:(?:me\ fresh\ marke|curis|tivan)t|(?:ademy\ sports\ \+\ outdoor|\ len)s|orn\ media\ uk|e\ hardware)|d(?:orama|dition\ elle|ams\ childrenswear)|\.(?:p\.c\.|s\.\ watson\ group)|t(?:hena|b\-market|ac|lanta\ bread\ company)|\ buck\ or\ two|hold|éropostale|ffiliated\ foods\ southwest|erostich|\-z|xel\ music|ion|\&w\ restaurants)|b(?:o(?:rders(?:\ group)?|o(?:k(?:\ (?:off|soup)|s\-a\-million)|\.com)|s(?:ton\ (?:store|market)|cov\'s|sini)|(?:hu|b\ evan|jangle)s|nchon\ chicken|yner)|e(?:n(?:(?:\ \&\ jerry\'|tall)s|jamin\ moore\ \&|edetti\'s\ pizza)|st\ (?:buy(?:\ europe)?|\&\ less)|a(?:t(?:e\ uhse\ ag|ties\ of\ london)|verbrooks)|l(?:k|ls\ stores|market)|r(?:g(?:hau|ner\')s|shka|tel\ o\.\ steen)|(?:d\ bath\ \&\ beyon|ter\ be)d|echworth\ bakery)|a(?:r(?:nes\ (?:\&|and)\ noble|beritos)|n(?:ana\ republic|k\ of\ america)|b(?:ycakes\ clothing|ies\ \"r\"\ us)|(?:th\ \&\ body\ work|ker\'s\ supermarket|ck\ yard\ burger|mberger\'|ss\ pro\ shop)s|ugur\ group|ywa|ja\ fresh)|i(?:l(?:la(?:bong)?|ka)|g\ (?:c(?:ity\ burrito)?|bazaar|w|(?:star\ record|lot)s|john\ steak\ \&\ onion)|\-lo|rthdays|ng\ lee)|u(?:r(?:ger\ (?:fuel|king)|lington\ coat\ factory)|n(?:nings\ warehouse|geishunjū|s\ and\ guns)|c(?:kle|a\ di\ beppo|\-ee\'s)|(?:dgen|ehler\ food)s|ilding\ 19|zzle|ttrey\ food\ \&\ drug)|r(?:i(?:tish\ home\ stores|(?:ghthous|oche\ doré)e|stol\ guild\ of\ applied\ art|comarché)|a(?:(?:dlee|nd\ key)s|zil\ pharma)|e(?:ntano\'|uners\ home\ furnishing)s|own(?:s(?:\ of\ chester)?|\ shoe)|u(?:(?:no\'|mby\'s\ bakerie)s|gsen))|la(?:ckjack\ pizza|ir)|j\'s\ wholesale\ club|\.\ dalton|ws|\ \&\ m|mmi)|c(?:a(?:r(?:r(?:s[\-\ ]safeway|o(?:ls\ restaurant\ group|ws)|efour|abba\'s)|t(?:oys|amundi)|a\ operations|son\ pirie\ scott|ino\'s\ italian\ grill|d\ factory|l\'s\ jr\.|max)|nad(?:ian\ tir|a\ goos)e|l(?:(?:tex\ woolworth|a\ food)s|loway\'s\ nursery|ifornia\ tortilla)|f(?:é\ (?:coffee\ day|de\ coral)|aro)|s(?:ual\ male\ retail\ group|h\ generator)|melot\ music|(?:vender|ctu|pillary\ technologie|bela\')s)|o(?:unt(?:ry\ (?:kitchen|style)|down|y\ seat)|m(?:p(?:u(?:sa|me)|anhia\ portuguesa\ de\ hipermercados)|et\ group)|s(?:t(?:c(?:o|utter)|\ plus(?:\ world\ market)?)|[iì])|l(?:es\ (?:supermarket|expres)s|l(?:ins\ booksellers|arcard)|ruyt|a\ cao)|ffee(?:\ (?:bean(?:\ bears)?|republic|1)|shop)|n(?:venien(?:ce\ retail\ asia|t\ food\ mart)|n(?:\'s|oisseur\'s\ bakery)|tact\ energy|domman\.com)|r(?:tefiel|ner\ bakery\ cafe)|o(?:gi|k\ out\ restaurant)|astal\ contacts|chin\ duty\ free)|i(?:rc(?:u(?:it(?:\ city\ stores|city\.com)|s\ world)|le\ k)|t(?:y(?:\ (?:national\ bank|supermarket)|super)|i(?:store|(?:zens\ national\ )?bank|\ trends))|a\.\ hering)|h(?:i(?:c(?:k(?:en(?:\ (?:cottage|delight|express|licken)|feed)|\-fil\-a)|o\'s)|(?:li\'|no\'s\ rock\ \&\ taco)s|potle\ mexican\ grill)|a(?:r(?:l(?:ie\'s\ kitchen|ey\'s\ grilled\ subs)|oen\ pokphand)|nnel\ (?:home\ centers|islands\ co\-operative\ society)|se(?:\-newar|\ ban)k|\ dao\ tea)|u(?:rch\'s(?:\ chicken)?|ck\ e\.\ cheese\'s)|e(?:ck(?:point\ system|er\')s|ster(?:\ barrie|\'s\ international)|draui|nab\ group|eburger\ cheeburger)|ristopher\ \&\ banks)|vs(?:\ pharmacy)?|l(?:a(?:ire\'s|s\ ohlson)|ive\ peeters|ub\ 21)|e(?:l(?:es)?io|nt(?:ral\ (?:market|department\ store)|erplate)|x|ylon\ electricity\ board)|r(?:e(?:ative\ products|paway)|o(?:cs|mā)|a(?:zy\ shirts|te\ \&\ barrel)|utchfield|ispers)|u(?:nningham\ drug|lver\'s)|\&a|\.\ \&\ j\.\ clark|gi\ group|dt\ \'smyk\'\ department\ store|sl\ sofas|p\ all)|f(?:a(?:r(?:m(?:foods|er\ jack)|rell\'s\ ice\ cream\ parlour)|s(?:ta\ pasta|hion\ to\ figure)|ir(?:way\ market|mount\ bagel)|o\ schwarz|(?:tburge|mous\ footwea)r|kta|(?:ntastic\ holding|zoli\')s)|o(?:o(?:d(?:town|(?:stuff|\ 4\ les)s|(?:worl|lan)d)|sackly\'s)|r(?:t(?:num\ \&\ mason|\ western\ stores)|zani\ group)|l(?:ey\'s|lett)|cus)|r(?:y\'s(?:\ electronics)?|e(?:d(?:\ meyer(?:\ jewelers)?|erick\ \&\ nelson|\'s)|e(?:\ (?:people|record\ shop)|mans|birds\ world\ burrito)|sh(?:\ \&\ easy|xpress))|ostop|iedman\'s)|e(?:rrellgas|nwick)|l(?:y(?:ing\ (?:j|star)|er\ enterprises)|a(?:nnels\ group|vorx)|unch)|i(?:lene\'s(?:\ basement)?|r(?:st\ global\ connection|ehouse\ sub)s|ve\ (?:below|guys)|ndus|sher\'s\ big\ wheel|desco\ group|elmann)|\.(?:\ hinds|y\.e\.)|u(?:ture\ group|ndoo\-t|ddruckers)|nac|jällräven|øtex)|n(?:o(?:r(?:d(?:strom|iska\ kompaniet)|m(?:s\ restaurant|\ thompson\ outfitter)s|auto|th\ atlantic\ restaurant)|\ fear|odle\ kidoodle|ble\ roman\'s)|e(?:w(?:\ (?:look|(?:seasons\ |deal\ super)market|world\ department\ store\ china|york\ fries)|gate\ clocks)|(?:x|braska\ furniture\ mar)t|tto|uron\ robotics)|ic(?:olas|kie\ nina)|a(?:t(?:ional\ business\ furniture|han\'s\ famous)|(?:(?:bih|ndo)\'|il)s|mdhari\'s\ fresh)|cix|hs)|h(?:a(?:r(?:dee\'s(?:\ \/\ red\ burrito)?|r(?:is\ (?:technology|scarfe)|ods)|vey(?:\ nichol|\')s|(?:t\ store|bor\ freight\ tool)s|mony\ house)|ppy(?:\ joe\'s|\'s\ pizza)|l(?:f(?:ord|\ price\ book)s|l(?:mark\ card)?s)|m(?:macher\ schlemmer|ashbir\ lazarchan)|(?:bita|stings\ entertainmen)t|(?:t\ worl|hne\ an)d|ggen\ food\ \&\ pharmacy|ddock|coupian)|o(?:me(?:\ (?:bargains|hardware)|g(?:rocer|oods)|(?:ba|sen)se|art)|t\ topic|nest\ ed\'s|llywood\ video|bby\ lobby|use\ of\ fraser|rten\ ag)|u(?:ngry\ jack|dson)\'s|\-e\-b(?:\ mexico)?|e(?:r(?:(?:berger\'|itage\ food)s|o\ burger)|i(?:ronimu|lig\-meyer)s|n(?:r(?:i\ lloyd|y\'s\ hamburgers)|derson\ music|ke\ \&\ pillot)|lzberg\ diamonds|ck\'s\ department\ store|ad\ entertainment|ung\ kong\ group|tero\ pharmacy|sburger)|i(?:(?:lander\ food|ckory\ farm)s|ghburton\ co\-operative\ society|story\ of\ pizza\ hut)|äagen\-dazs|mv\ group|(?:2o\ retailin|hgreg)g|\&m)|z(?:a(?:r(?:a|raffas\ coffee)|vvi(?:\ entertainment\ group|\.com)|(?:yr|l)e|ny\ brainy|xby\'s)|o(?:ne\ coopérative\ de\ l\'université\ laval|ës\ kitchen)|ions\ cooperative\ mercantile\ institution|umiez|en\ department\ store|pizza)|d(?:a(?:i(?:ei|ry\ queen|ya)|(?:yton\'|nsk\ supermarked\ a\/|wahare|hl\'s\ food)s|vid\'s\ bridal|ri\ mart|phne\'s\ greek\ cafe)|o(?:llar(?:\ (?:g(?:eneral|iant)|tree|financial\ group)|ama)|mino(?:\'s(?:\ pizza(?:\ enterprises)?)?|s)|u(?:glas\ holding|bledave\'s\ pizzaworks)|ite|natos\ pizza)|e(?:l(?:haize\ group|\ taco|phi\ glass)|m(?:ijohn|on\ tweeks)|sign(?:er\ (?:depot|shoe\ warehouse)|\ (?:house\ stockholm|by\ humans))|(?:(?:benha|rry\ \&\ to)m|nny\')s|cathlon\ group)|r(?:oga(?:ria(?:\ são\ paulo|s\ dpsp)|sil|\ raia)|ugstore\.com|ake\ supermarkets|essbarn)|u(?:(?:ane\ read|tch\ bros\.\ coffe)e|nkin\'\ donuts)|i(?:ck(?:\ smith|ey\'s\ barbecue\ pit|\'s\ sporting\ goods)|xons\ retail|(?:ppin\'\ dot|llard\')s|a|scount\ tire|gicel\ imax)|(?:ymocks\ bookseller|gse\ companie)s|lf|dr|well)|r(?:a(?:di(?:oshack|ant\ systems)|l(?:ph|ly\')s|i(?:sing\ cane\'s(?:\ chicken\ fingers)?|nbow\ shops|a\ drogasil)|c(?:etrac|ingtheplanet)|sta\ taco|ndalls)|o(?:b(?:in(?:son(?:s\ (?:malls|supermarket)|\ department\ store)|\'s\ donuts)|b(?:ins\ brother)?s|ne\ kuće\ beograd)|o(?:ts\ canada|m\ \&\ board)|s(?:auers\ supermarket)?s|n(?:\ jon\ surf\ shop|a)|ad(?:(?:\ runner\ sport|y\'s\ truck\ stop)s|ster\ diner)|y(?:al\ supermarket|s\ of\ wroxham|\ rogers\ restaurants)|ck\/creek|uses|mano\'s\ macaroni\ grill)|e(?:d(?:\ (?:ro(?:bin|oster)|lobster|barn)|box|ner\'s\ markets)|a(?:l\ canadian\ superstore|d\'s\ department\ stores)|c(?:ord(?:land|\-rama)|heio)|t(?:ail\ (?:adventures|food\ group)|ravision)|l(?:iance\ fresh|ayfoods\.com)|(?:itman|ny|fah\ chain\ store)s|public|ject\ shop)|i(?:c(?:h(?:er\ sound|ard\ shop)s|kel)|t(?:chies\ stores|moteca\.com)|ocan\ real\ estate\ investment\ trust|p\'s\ tavern)|u(?:(?:tter|stan)\'s|mbi\ island\ grill|by\ tuesday)|(?:hino\ video\ game|c\ willey\ home\ furnishing)s)|g(?:a(?:r(?:finckel\'s|age)|(?:mesto)?p|te\ petroleum|nder\ mountain|zzaz\ department\ stores)|i(?:(?:mbel|eves\ \&\ hawke)s|ordano|ant\-carlisle)|o(?:l(?:dsmiths|fsmith|i\ vada\ pav)|(?:ttschalk|od\ vibration|me\ electrical\ appliance|sling\ brother)s)|r(?:a(?:eter\'|inger\ game)s|ee(?:tings\ \&\ reading|nwood)s|oupe\ casino|upo\ famsa)|e(?:ek(?:net|s\.com)|orge\ weston|tgo)|u(?:(?:l\ ahmed\ textile\ mill|(?:mp|thrie)\')s|itar\ center)|l(?:o(?:b(?:e(?:\ department\ store|star\ systems)|al\ pet\ foods)|ria\ jean\'s\ coffees)|ik\'s)|2000|ymboree|kb\ opticals)|e(?:a(?:t(?:on\'s|\'n\ park|aly)|s(?:t(?:ern\ mountain\ sports|\ of\ chicago\ pizza)|on\ \&\ son)|gle\ boys)|m(?:ack\ \&\ bolio\'s|bed\ international|p\ merchandising)|l\ (?:corte\ inglés|pollo\ loco)|d(?:e(?:ka|n\ allure)|die\ bauer|con|gewater\ technology)?|r(?:oski|nst\ home\ centers)|s(?:prit\ holdings|lite\ bookstore)|i(?:leen\ fisher|sner\ food\ stores)|x(?:tra|pert)|th(?:el\ austi|ical\ ocea)n|\.\ j\.\ korvette|(?:b\ games\ australi|(?:ye\ care\ centers\ of\ ameri|uroapothe)c)a|ntertainment\ uk|quanet)|v(?:i(?:t(?:amin\ world|toria\ coffee)|(?:rgin\ megastore|sions\ electronic)s|ntage\ stock|val)|er(?:kkokauppa\.com|opoulos|go\ retail)|a(?:l(?:(?:or|ters\ un\ rap)a|ue\ drug\ mart)|n(?:ity|\ de\ velde\ n\.v\.)|piano|rner\-gruppen)|roman\'s\ bookstore|ons|(?:si\-mebl|êt)i)|o(?:l(?:d\ navy|ive\ garden)|ffice(?:\ depot|max|works)|r(?:(?:e\-id|ganizacion\ coron)a|oton|ange\ julius)|wen(?:\ owen|\'s\ market)|g(?:ilvy|gi)|d(?:akyu\ group|el|dbins)|(?:cad|sc)o|(?:maha\ steak|\'reilly\ auto\ part)s|utback\ steakhouse)|i(?:c(?:eland|i\ paris\ xl)|n(?:ter(?:national\ (?:intelligence|house\ of\ pancakes\))|marché)|k(?:fruit|stop)|ditex|gles|fratil|no|\-n\-out\ burger)|r(?:ma|ish\ dairy\ board)|s(?:la(?:nd|bikes)|etan)|kano\ bank|(?:mpul|qa)se|hop)|u(?:n(?:i(?:ted\ (?:dairy\ farmers|furniture\ warehouse|refining)|qlo|verstores\.com|comer\ group)|o\ chicago\ grill)|p(?:ton(?:\ tea\ import)?s|per\ crust\ pizzeria)|t(?:erqüe|ility\ stores)|lt(?:ra\ diamonds|a)|rban\ outfitters|2\ clothing|sc|\-right|\.s\.\ polo\ assn\.)|y(?:o(?:unkers|lato|gurtland)|amada\ denki|uyuan\ tourist\ mart)|q(?:doba(?:\ mexican\ grill)?|u(?:i(?:ck(?:\ chek)?|ktrip|znos)|ality\ save)|3\ technologies)|1(?:\-800(?:\ contact|\-mattres)s|s(?:t\ choice\ liquor\ superstore|aleaday)|08\ shop)|(?:7\-eleve|æo)n|čili|99p\ stores|xen\ coffee))))\b)
13 changes: 3 additions & 10 deletions t/Places.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,12 @@ use DDG::Test::Spice;

ddg_spice_test(
[qw( DDG::Spice::Maps::Places )],
'nearest any text' => test_spice(
'/js/spice/maps/places/nearest%20any%20text',
'nearest primos' => test_spice(
'/js/spice/maps/places/nearest%20primos',
call_type => 'include',
caller => 'DDG::Spice::Maps::Places',
is_cached => 0,
is_cached => 0,
),
'nearest walmart' => test_spice(
'/js/spice/maps/places/nearest%20walmart',
call_type => 'include',
caller => 'DDG::Spice::Maps::Places',
is_cached => 0,
),
'walmart' => undef,
'local time' => undef,
);

Expand Down

0 comments on commit 1077f70

Please sign in to comment.