diff --git a/jq/wmsc.jq b/jq/wmsc.jq index a81c5bc..4cd470b 100644 --- a/jq/wmsc.jq +++ b/jq/wmsc.jq @@ -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:]](?[0-9]{4})[^[:alnum:]]?(?(?:0[1-9]|1[0-2]))[^[:alnum:]]?(?(?:[0-2][0-9]|3[01]))").captures