Commit Graph

16 Commits (master)

Author SHA1 Message Date
Gautam krishna.R 94b217af1a Remove html_enc() from RandomDate.pm (#3599)
* removed all html_enc()

* fixed some tests still 2 failing

* Update RandomDate.pm
2016-09-05 10:40:02 +01:00
Ben Moon 8347689276 Ensure start and end dates are different 2016-07-20 10:49:29 +01:00
Ben Moon 4fcf5dfed5 Add support for ranges with 'Date and Time' 2016-07-19 16:06:28 +01:00
Ben Moon c35ab307dc Add support for additional past/future forms 2016-07-19 15:41:43 +01:00
Ben Moon 67e7af47c7 Ensure unsupported ranges do not trigger 2016-07-19 14:25:58 +01:00
Ben Moon 6520e91a28 Ensure min and max dates are valid 2016-07-19 14:21:27 +01:00
Ben Moon 6460f1b727 Add support for 'between' forms 2016-07-19 14:17:27 +01:00
Ben Moon f7bf753492 Ensure (test) matches are on full string 2016-07-19 14:06:03 +01:00
Ben Moon 1fc7aeaa71 Add support for 'in the past' forms 2016-07-19 14:04:51 +01:00
Ben Moon 0231273a59 Add support for 'in the past' forms for Date 2016-07-19 13:55:57 +01:00
Ben Moon 955739a57e Add helpers for building tests 2016-07-19 13:14:36 +01:00
Ben Moon da06c07e35 Add support for CLDR formats
Any format that doesn't contain any '%' symbols will be treated as a
CLDR format. A format may be optionally suffixed by ' (cldr)' to
indicate that it should be treated as a CLDR format regardless of
contents.
2016-04-13 14:54:22 +01:00
Ben Moon f0b4f0c41f Add HTML encoding to answers
Sadness, the format, the pain.
2016-04-13 14:10:39 +01:00
Ben Moon 4b858eacaa Blacklist certain formats
The %{method} format is probably a bit too 'powerful', so we will not
return an answer if it is included.

We should allow blacklisted formats (as text only), but escape them so they don't
interfere with the actual formats.
2016-04-13 09:48:28 +01:00
Ben Moon 941f03481e Correct year test regex
Didn't allow for short years (e.g., 651).
2016-04-12 21:27:52 +01:00
Ben Moon 98918a4378 Rename ExampleDate to RandomDate 2016-04-12 19:56:42 +01:00