duckduckgo / p5-app-duckpan

DuckDuckHack OpenSource Development Application
http://metacpan.org/module/App::DuckPAN
Other
53 stars 47 forks source link

Bug with triggers startend for multiple words #38

Closed jagtalon closed 10 years ago

jagtalon commented 10 years ago

I have triggers startend => "idreambooks", "book reviews", "book review";, but somehow "the book of joe reviews" triggers. Is it splitting the strings?

I'm getting this as my output:

Query: the book of joe reviews
  You entered: the book of joe reviews

DDG::ZeroClickInfo::Spice  {
    Parents       Moo::Object
    public methods (9) : call, call_data, caller, call_path, call_type, has_call, has_call_data, has_call_type, new
    private methods (0)
    internals: {
        call        "/js/spice/book/the",
        caller      "DDG::Spice::Book",
        call_type   "include",
        is_cached   1,
        is_unsafe   0
    }
}
majuscule commented 10 years ago

If I'm not mistaken, that'll be a bug in https://github.com/duckduckgo/duckduckgo, not duckpan. Look at lib/DDG/Block/Words.pm.

jagtalon commented 10 years ago

@nospampleasemam Oh, thanks for pointing that out. Will move the issue there. :)