- Add filler_words list which can be stripped from the query before
trying to parse date strings.
- Anchor datestring_regex so as to allow for only date left in query
after clean-up.
- Improve guard against empty strings and `undef` in Dates role parsers.
Fixes#661.
This explicity sets the caching behavior for all goodies. Goodies which
did not have caching behavior set in their package have had it added.
Similarly for the tests.
This resulted in a number of changes for caching behavior, mostly
moving towards more frequent caching.
I identified three cases where goodies should not be cached. They are when
the result depends upon:
- some random element,
- the time of day or year (as with relative dates), or
- the location of the requesting user
In all other cases, I presumed that the goodies were sufficiently
deterministic in their output to warrant caching.
- Clean up/remove some globals which confused things.
- Simplify logic-flow.
- Remove extraneous </div> from HTML output.
- Expand triggers to short months.
DatesRole:
- Create month_regex() to handle combo of short and full.