From 5b1df71de6f1978bf63073dc87323dc261377670 Mon Sep 17 00:00:00 2001
From: Theo Arends <11044339+arendst@users.noreply.github.com>
Date: Fri, 1 May 2020 11:48:12 +0200
Subject: [PATCH] Fix ESP32 pin allocation part 3 regression
---
tasmota/xdrv_01_webserver.ino | 35 ++++++++++++++++++++++++++++-------
1 file changed, 28 insertions(+), 7 deletions(-)
diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino
index beeaa31a3..148051be6 100644
--- a/tasmota/xdrv_01_webserver.ino
+++ b/tasmota/xdrv_01_webserver.ino
@@ -228,13 +228,15 @@ const char HTTP_SCRIPT_CONSOL[] PROGMEM =
"wl(h);"; // Add console command key eventlistener after name has been synced with id (= wl(jd))
const char HTTP_MODULE_TEMPLATE_REPLACE[] PROGMEM =
- "}2%d'>%s (%d}3"; // }2 and }3 are used in below os.replace
+ "}2%d'>%s (%d)}3"; // }2 and }3 are used in below os.replace
+const char HTTP_MODULE_TEMPLATE_NO_INDEX_REPLACE[] PROGMEM =
+ "}2%d'>%s}3"; // }2 and }3 are used in below os.replace
const char HTTP_SCRIPT_MODULE_TEMPLATE[] PROGMEM =
#ifdef ESP8266
"var os;"
"function sk(s,g){" // s = value, g = id and name
- "var o=os.replace(/}2/g,\"