This commit is contained in:
parent
b42245747a
commit
1453dc32c8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue