Added documentation for date ordinals support in date filter via %q (#581)

* Added date ordinals support in date filter via %q

* fix: validation regex for default date format

* fix: validation regex for default date format
This commit is contained in:
prassie
2023-02-04 11:31:30 +08:00
committed by GitHub
parent 7f76e1311f
commit a55f44f095
3 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -375,7 +375,8 @@ describe('Issues', function () {
})
const tpl = `{{ 'now' | date }}`
const html = await liquid.parseAndRender(tpl)
expect(html).to.match(/\w+, January \d+, 2023 at \d+:\d\d [ap]m [-+]\d\d\d\d/)
// sample: Thursday, February 2, 2023 at 6:25 pm +0000
expect(html).to.match(/\w+, \w+ \d+, \d\d\d\d at \d+:\d\d [ap]m [-+]\d\d\d\d/)
})
it('#575 Add support for Not operator', async () => {
const liquid = new Liquid()