cpasbienclone: fix year processing. resolves #7962

This commit is contained in:
Garfield69
2020-04-01 15:11:03 +13:00
parent 8e64ecb027
commit cfee3e79d2

View File

@@ -62,9 +62,9 @@
site_date: site_date:
selector: a selector: a
filters: filters:
# date is at the end of the title, so we get it and name it site_date # year can be at the end of the title, so we get it and name it site_date
- name: regexp - name: regexp
args: "(\\w+)$" args: "(\\d{4})$"
title: title:
selector: a selector: a
filters: filters:
@@ -79,7 +79,7 @@
args: ["VOSTFR", "{{ .Result.site_date }} VOSTFR"] args: ["VOSTFR", "{{ .Result.site_date }} VOSTFR"]
# and we delete it at the end # and we delete it at the end
- name: re_replace - name: re_replace
args: ["(\\w+)$", ""] args: ["(\\d{4})$", ""]
details: details:
selector: a selector: a
attribute: href attribute: href