From 5c69556866dbcdd387eba491311d63f74054df03 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 24 Apr 2023 18:06:28 +0200 Subject: [PATCH] Update Dockerfile https://github.com/alexbelgium/hassio-addons/issues/803 Avoid issues due to https://github.com/benbusby/whoogle-search/pull/865/files#diff-51c5befab50bb5b9e583a944be9fc712ca6077a28e61721a13f9b00f6180b50f --- whoogle/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/whoogle/Dockerfile b/whoogle/Dockerfile index e511108b6..2cebf6866 100644 --- a/whoogle/Dockerfile +++ b/whoogle/Dockerfile @@ -29,6 +29,10 @@ 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 + ################## # 3 Install apps # ##################