Commit 1d0ad3e0 authored by Aurélio A. Heckert's avatar Aurélio A. Heckert

Support crazy dates IV

parent 31915afd
......@@ -91,7 +91,7 @@ if (grep -q 'id="data"' $slug.ORIG.html); then
pub_time=12:00
else
eval $(grep 'id="data"' $slug.ORIG.html |
sed -r 's#.*<span id="data">Atualizado em ([0-9]+)( [ae] [0-9]+|[0-9, ]*)? DE ([a-z]+)( DE ([0-9]+))?( ás ([0-9:]+))?</span>.*#\
sed -r 's#.*<span id="data">Atualizado em ([0-9]+)( [ae] [0-9]+|[0-9,e ]*)? DE ([a-z]+)( DE ([0-9]+))?( ás ([0-9:]+))?</span>.*#\
pub_day=\1;\
pub_month=\3;\
pub_year=\5;\
......@@ -113,7 +113,7 @@ else
fi
if [ $category = evento ]; then
eval $(echo $ev_date | sed -r 's#\s*([0-9]+)( [ae] [0-9]+|[0-9, ]*)? de ([a-z]+)( de ([0-9]+))?.*#\
eval $(echo $ev_date | sed -r 's#\s*([0-9]+)( [ae] [0-9]+|[0-9,e ]*)? de ([a-z]+)( de ([0-9]+))?.*#\
ev_day=\1;\
ev_month=\3;\
ev_year=\5;\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment