From da2f86036af05f16ed8d029899be606ba63abc10 Mon Sep 17 00:00:00 2001 From: Torsten Stauder Date: Tue, 24 Mar 2020 23:13:11 +0100 Subject: [PATCH] regexp-fix: wrong escaping due to *char-transform --- html/website.html | 2 +- processHtml.py | 3 +++ src/websiteMgmt.h | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/html/website.html b/html/website.html index a84b90d..a128eed 100644 --- a/html/website.html +++ b/html/website.html @@ -131,7 +131,7 @@
- +
Bitte eine gültige IPv4-Adresse eingeben, z.B. 192.168.2.89.
diff --git a/processHtml.py b/processHtml.py index a4a533c..9267213 100644 --- a/processHtml.py +++ b/processHtml.py @@ -6,6 +6,9 @@ content2 = '' with open('html/website.html', 'r') as r: data = r.read().replace('\n', '\\\n') data = data.replace('\"', '\\"') + data = data.replace('\\d', '\\\d') + data = data.replace('\\.', '\\\.') + data = data.replace('\\^', '\\\\^') content += data with open('src/websiteMgmt.h', 'w') as w: diff --git a/src/websiteMgmt.h b/src/websiteMgmt.h index 279a915..a2a557b 100644 --- a/src/websiteMgmt.h +++ b/src/websiteMgmt.h @@ -72,7 +72,7 @@ static const char mgtWebsite[] PROGMEM = "\ \ \ \ - \ + \ \ \ + \
\ Bitte eine gültige IPv4-Adresse eingeben, z.B. 192.168.2.89.\
\