Fix WMSC custom feed, close #98
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Lucidiot 2022-05-25 00:10:53 +02:00
parent b42245747a
commit 1453dc32c8
Signed by: lucidiot
GPG Key ID: 3358C1CA6906FB8D
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@
# so we first compute a timestamp that we can use to sort items with. This helps with bad RSS reader implementations.
[.[] | .timestamp = (
.text
| strings
# Dates are in the middle of the bullet contents, sometimes with their parts separated with punctuation, sometimes not:
# 2019-02-31, 20190231, 2019_0231, 2019 02-31 etc.
| match("[^[:alnum:]](?<year>[0-9]{4})[^[:alnum:]]?(?<month>(?:0[1-9]|1[0-2]))[^[:alnum:]]?(?<day>(?:[0-2][0-9]|3[01]))").captures