From 0a547dee91601cb931317ae719c3dad86bf05957 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 24 Apr 2023 20:19:34 +0200 Subject: [PATCH] Update Dockerfile --- whoogle/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/whoogle/Dockerfile b/whoogle/Dockerfile index 2cebf6866..1277986fb 100644 --- a/whoogle/Dockerfile +++ b/whoogle/Dockerfile @@ -30,8 +30,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \ USER root RUN \ - sed -i "s#if re.match(\'.\*\[@_\!\#\$%\^\&\*()\<\>\?/\\\|}{\~:\].\*\',#if not re.match\(\'.\*\[a-zA-Z0-9\].\*\',#g" /whoogle/app/utils/results.py && \ - sed -i "s#re.sub(r\'\[@_\!\#\$%\^\&\*()\<\>\?/\\\|}{\~:\]+\',#re.sub\(r\'\[\^A-Za-z0-9 \]+\',#g" /whoogle/app/utils/results.py + sed -i "s/word = re.sub.*/word = re.sub(r'[^A-Za-z0-9 ]+', '', word)/g" /whoogle/app/utils/results.py ################## # 3 Install apps #