Commit 8190823c authored by remy's avatar remy
Browse files

adding some regexps

parent 5d0a235b
workdir/
results/
......@@ -69,10 +69,12 @@ function remove_dyn_elems {
wp_regexp_plugin_wedevsprojectmanager="pusher.+ver="
wp_regexp_plugin_gravityform='ajax.php'
wp_regexp_plugin_calendar="\sid=\"today\""
wp_regexp_plugin_timetable='.css?ver='
wp_regexp_plugin_rsswidget="rsswidget"
gitlab_regexp_arr=("authenticity_token" "csrf-token")
typesetter_regexp_arr=("wgBackendResponseTime" "wgRequestId" "time" "[0-9]{1,3}\.[0-9]{1,2}+%\s+[0-9]{1}\.[0-9]{3}")
nextcloud_regexp_arr=("token" "nonce")
nextcloud_regexp_arr=("token" "nonce" "core\/css\/guest.css")
nextcloud_regexp_plugin_deck='deck/css/activity.css?v='
gitbook_regexp_arr=("data-revision" "mtime")
hesk_rule='165d'
......@@ -104,6 +106,9 @@ function remove_dyn_elems {
"calendar" )
sed -ri -e /$wp_regexp_plugin_calendar/d $name.index.html
;;
"timetable" )
sed -i -e /$wp_regexp_plugin_calendar/d $name.index.html
;;
* )
;;
esac
......@@ -135,6 +140,17 @@ function remove_dyn_elems {
do
sed -ri -e /$nextcloud_regexp/d $name.index.html
done
plugins_nl=$(echo $plugins | tr "," "\n")
for plugin in $plugins_nl
do
case $plugin in
"deck" )
sed -i -e /$wp_regexp_plugin_calendar/d $name.index.html
;;
* )
;;
esac
done
;;
* )
;;
......
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