Go to file
Rob Emery 0cffa6161e POTUS: Triggering is way too keen (#3938)
* POTUS: Adding failing test for overtrigger

* POTUS: the previous || $prez_count meant that it defaulted to the current president if it didn't recognise the number; hence why it was showing so many false positives

* POTUS: Now with stricter handling on the $num we can trust the validation later on to keep us safe from overtriggering

* POTUS: basic queries that really should work!

* POTUS: Switching to using a guard regex to match things rather than using replacements

* POTUS: Guard regex now protects the query space. and "was" is used to imply the previous president (currently obama)

* POTUS: switched to query_lc and implementing both a guard regex and a replacement for the triggers so that the code below behaves as if it is remainder =>, except that this doesn't erroneously replace "president-elect of the us" with ""

* POTUS: We don't need $rem
2017-03-06 23:39:09 -05:00
.github Update PULL_REQUEST_TEMPLATE.md 2016-12-05 17:14:46 -05:00
lib/DDG POTUS: Triggering is way too keen (#3938) 2017-03-06 23:39:09 -05:00
share/goodie Merge pull request #3979 from DPAUTH/duck1 2017-03-06 18:25:30 +00:00
t POTUS: Triggering is way too keen (#3938) 2017-03-06 23:39:09 -05:00
template Merge pull request #3337 from duckduckgo/gd/cheat-sheet-template 2016-07-07 11:34:44 -06:00
.gitignore Reverted the .gitignore file to original one. 2016-08-17 23:30:19 +05:30
.travis.yml try forcing a single process for readability 2016-03-01 16:41:48 -07:00
CONTRIBUTING.md updated contributing.md 2016-08-30 11:01:49 -04:00
LICENSE Vanilla LICENSE file, no modifications. 2015-01-19 22:30:05 +01:00
README.md Update README.md 2017-01-03 01:50:48 +05:30
dist.ini remove line 2016-12-20 13:27:08 -05:00

README.md

Build Status

Welcome to DuckDuckHack!

We're a community of open source developers from around the world, contributing code to improve the DuckDuckGo search engine.

The Programming Mission

We want every programming search to have great results, providing the information you need instantly. The Programming Mission empowers the community to create Instant Answers for reference, libraries, help, and tools.

For now, we are only accepting Pull Requests and Issues related to the Programming Mission.

How to contribute

What are Goodie Instant Answers?

Goodies do not retrieve data from a third party API. Goodies provide their results entirely through server-side code. They may use a static data file stored on DuckDuckGo's server, but they do not call external resources.

Example: JavaScript Minifier Goodie

javascript minifier search

Resources