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

Commit

Permalink
moving chains_re to places triggering
Browse files Browse the repository at this point in the history
  • Loading branch information
b2ddg committed Sep 11, 2015
1 parent 56500e3 commit 2308748
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 48 deletions.
24 changes: 0 additions & 24 deletions lib/DDG/Spice/Maps/Chains.pm

This file was deleted.

22 changes: 3 additions & 19 deletions lib/DDG/Spice/Maps/Places.pm
Expand Up @@ -10,25 +10,9 @@ spice to => 'https://duckduckgo.com/local.js?q=$1&cb={{callback}}';
spice proxy_cache_valid => "418 1d";
spice is_cached => 0;

triggers startend => (
'local',
'near',
'near me',
'around',
'around me',
'here',
'locally',
'nearby',
'close',
'closest',
'nearest',

'locations',
'location',

'restaurant',
'restaurants',
);
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/(^$chains_re$|^$places_re|$places_re$)/s;

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

Expand Down
5 changes: 0 additions & 5 deletions share/spice/maps/chains/maps_chains.js

This file was deleted.

File renamed without changes.

0 comments on commit 2308748

Please sign in to comment.