Ben Moon
60a371dea8
Correct caching
2016-02-03 19:30:22 +00:00
Ben Moon
b42bc4c7dd
Add support for specifying time
...
Allows direct specification of time for input date.
2016-02-03 19:30:22 +00:00
Ben Moon
1915f773e9
Provide access to time regexes
...
time_24h_regex for 24 hour clocks
time_12h_regex for 12 hour clocks
2016-02-03 19:30:22 +00:00
Ben Moon
2093f3e073
Allow use of `time` form
...
Such as: `time now`, `time in 3 days` etc...
Will display time as well as date.
2016-02-03 19:30:22 +00:00
Ben Moon
3927595492
Fix some whitespace
2016-02-03 19:30:22 +00:00
Ben Moon
47daa8b593
Update to fall-back on time-zone offset
2016-02-03 19:30:22 +00:00
Ben Moon
fd97b48e33
Add support for 24hr clock in display
2016-02-03 19:30:22 +00:00
Ben Moon
3c7c92c85b
Fix issue with time-zone not being added correctly
2016-02-03 19:30:22 +00:00
Ben Moon
db88b11d1d
Add support for %d %b %Y %T %Z format
...
Essentially HTTP format without the day and allowing any timezone.
2016-02-03 19:30:22 +00:00
Ben Moon
a24b0aaf42
Update to use NumberStyler
2016-02-03 19:30:22 +00:00
Ben Moon
35f2a2f908
Fix plurals
2016-02-03 19:30:22 +00:00
Ben Moon
1dae5db923
Implement hour/minute/second support
...
Closes #2056
2016-02-03 19:30:21 +00:00
Ben Moon
8015a0fc85
Move duration computation out of handler
2016-02-03 19:30:21 +00:00
Ben Moon
676bdd9b4a
Update regexes for new units
2016-02-03 19:30:21 +00:00
Ben Moon
eb3673f722
Update to use answer-helper
2016-02-03 19:30:21 +00:00
Ben Moon
ee91838358
Update triggers for additional units
2016-02-03 19:30:21 +00:00
Ben Moon
ef7196868b
Convert to use templates
2016-02-03 19:30:21 +00:00
Ben Moon
4977cb0bb6
Fix some bad whitespace
2016-02-03 19:30:21 +00:00
Ben Moon
1203c78e57
Fix triggering with non-numbers
...
Would allow non-numbers to be present if numbers were already in the
query.
2016-02-03 18:10:38 +00:00
Ben Moon
6e55266f87
Remove 'sf' trigger
...
Reduce over-triggering - 'sf' seems to be used for other things.
2016-02-03 18:00:59 +00:00
Zaahir Moolla
2161a309fc
Merge pull request #2201 from duckduckgo/pr/2003
...
VIN: Switch to subtitle-content template, mimic new DuckDuckGo.pm design
2016-02-02 00:17:53 -05:00
Zaahir Moolla
c050fbfe8f
change template name, fix tests
2016-02-02 00:15:13 -05:00
Zaahir Moolla
4e0803b5c7
Pass along decode url to API
2016-02-02 00:09:28 -05:00
Zaahir Moolla
db251c5ebb
Switch replace moreAt with subtitle-content template
2016-02-02 00:06:45 -05:00
Zaahir Moolla
e2e83805aa
Merge pull request #1964 from duckduckgo/mintsoft/template-atbash
...
Convert Atbash to text template
2016-02-01 23:35:40 -05:00
Zaahir Moolla
6b40f1d3ed
add html_enc(), update tests
2016-02-01 23:31:29 -05:00
Zaahir Moolla
f7494c549a
Regex: Escape all html to prevent SERP breakage
2016-01-31 14:08:46 -05:00
Zaahir Moolla
8b6a2f1ffc
Merge pull request #1998 from GuiltyDolphin/regexp-improve
...
Regexp: Improvements!
2016-01-31 13:01:18 -05:00
Zaahir Moolla
f24d1d8322
Merge pull request #1974 from GuiltyDolphin/sigfigs-fix
...
SigFigs: Update to use templates + other improvements
2016-01-31 12:41:34 -05:00
Zaahir Moolla
e96d1a92e1
bring back some CSS, minor visual tweaks
2016-01-30 19:05:01 -05:00
Zaahir Moolla
3bc265f26e
Merge pull request #1989 from Mailkov/suninfoissue1163
...
Issue #1163 - Convert SunInfo to use templates
2016-01-30 19:04:27 -05:00
Zaahir Moolla
7e909ae220
Merge pull request #1978 from Mailkov/crypthashcheckissue1163
...
Issue #1163 - Convert CryptHashCheck to use templates
2016-01-30 18:34:08 -05:00
Zaahir Moolla
d04bd61413
Merge pull request #1959 from Mailkov/calendartodayissue1163
...
Issue #1163 - Convert CalendarToday to use templates
2016-01-30 18:24:07 -05:00
Zaahir Moolla
71ad58040f
Merge pull request #1886 from GuiltyDolphin/caesar-cipher
...
New Caesar Cipher Goodie
2016-01-29 20:10:29 -05:00
Zaahir Moolla
54798e4e40
Merge pull request #1973 from amitdev/master
...
Periodic Table Updated - Fixes #1914
2016-01-25 21:43:35 -05:00
Jag Talon
8babf4ee28
Merge pull request #2005 from Mailkov/percenterrorissue1163
...
Issue #1163 - Convert PercentError to use templates
2016-01-25 15:56:38 -05:00
Jag Talon
8fb592b4c2
Merge pull request #2013 from GuiltyDolphin/zodiac-update-deps
...
Zodiac - Remove DateTime::Event::Zodiac Dependency
2016-01-25 15:40:16 -05:00
Ben Moon
1c87b33c94
Use html_enc to encode subtitles
...
It hurts dammit!
2016-01-24 10:06:23 +00:00
Zaahir Moolla
28a75146cc
remove trailing space, add newline before ABSTRACT
2016-01-24 00:36:18 -05:00
Zach Thompson
657b0dead2
Put 'use big*' after is_cached so we don't promote is_cached
2016-01-21 11:12:38 -07:00
Ben Moon
8008d40d74
Update formatted input
...
From `Significant figures of...` to `Number of Significant Figures
in...`.
2016-01-18 19:06:00 +00:00
Ben Moon
0a5d01e73e
Improve triggers
...
Vastly improves the triggering!
I had a look at searches related to significant figures and none of the
common searches involved `sd` or `sig digs`, so I got rid of those
triggers.
A lot of the searches were along the lines of "What are the significant
figures of X?" - so I've updated the handler to allow for these types of
queries.
2016-01-18 19:05:58 +00:00
Ben Moon
6511199068
Improve general handling of significant figures
...
Fixes an issue with input of just '0', the Goodie was not triggering.
2016-01-18 19:05:07 +00:00
Ben Moon
b886023057
Add support for more number systems
...
Uses the `NumberStyler` GoodieRole to improve number support.
2016-01-18 19:05:06 +00:00
Ben Moon
85ec54e8be
Update answer to use text template
2016-01-18 19:05:06 +00:00
Ben Moon
cadd1b0154
Fix issue with invalid regexes causing warnings
...
Suppresses warnings that relate to invalid compilation of the user's
regular expression.
2016-01-18 18:52:29 +00:00
Ben Moon
6e03f6aee7
Fix issue with brackets in named captures
...
For some reason it was displaying a result (when it shouldn't) if there
were brackets in the names of the capture groups.
2016-01-18 18:52:29 +00:00
Ben Moon
5a2a003503
Improve naming of results
...
Named Match (X) -> Named Capture <X>
Number Match (X) -> Subpattern Match X
2016-01-18 18:52:29 +00:00
Ben Moon
b33428914d
Correct ordering of results
...
Will display Full Match, then Named, then Numbered.
2016-01-18 18:52:29 +00:00
Ben Moon
ed622cf84b
Add support for ignore-case modifier
2016-01-18 18:52:29 +00:00