duckduckgo / zeroclickinfo-spice

DuckDuckGo Instant Answers based on JavaScript (JSON) APIs
https://duckduckhack.com/
Other
548 stars 942 forks source link

UK postcode without a space doesn't trigger #166

Closed frabcus closed 11 years ago

frabcus commented 11 years ago

I often enter postcodes without a space "ox13dr", rather than say "ox1 3dr". In the United Kingdom, there is no ambiguity in missing the space, and people often do that when typing them for searches.

The MapQuest map is triggered when I include the space, not triggered when I don't.

In the Zipcode.pm spice, there are a bunch of quite generic regular expressions which I don't understand the international implications of in full to offer a patch.

moollaza commented 11 years ago

@frabcus thanks a lot for letting us know about this! I've fixed the issue here: https://github.com/duckduckgo/zeroclickinfo-spice/commit/e59886d323e92a8a8e5493727d9284752c2eed05