Skip to content

Commit eb66659

Browse files
committed
Fix validation pattern for auto-off delay
Fixes #61
1 parent 3c4605d commit eb66659

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

fs/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ <h1>Switch 1</h1>
9898
</div>
9999
<div>
100100
<label for="sw1_auto_off_delay">Auto off delay:</label>
101-
<input type="text" id="sw1_auto_off_delay" placeholder="HH:MM:SS.sss" required pattern="(0*([0-9]|1[0-9]|2[0-3])):(0*([0-9]|[1-4][0-9]|5[0-9])):(0*([0-9]|[1-4][0-9]|5[0-9])).([1-9][0-9][0-9]|[0-9][1-9][0-9])">
101+
<input type="text" id="sw1_auto_off_delay" placeholder="HH:MM:SS.sss" required
102+
pattern="(0*([0-9]|1[0-9]|2[0-3])):(0*([0-9]|[1-4][0-9]|5[0-9])):(0*([0-9]|[1-4][0-9]|5[0-9])).([0-9][0-9][0-9])">
102103
</div>
103104
<div class="form-control">
104105
<label></label>
@@ -157,7 +158,8 @@ <h1>Switch 2</h1>
157158
</div>
158159
<div>
159160
<label for="sw2_auto_off_delay">Auto off delay:</label>
160-
<input type="text" id="sw2_auto_off_delay" placeholder="HH:MM:SS.sss" required pattern="(0*([0-9]|1[0-9]|2[0-3])):(0*([0-9]|[1-4][0-9]|5[0-9])):(0*([0-9]|[1-4][0-9]|5[0-9])).(([1-9][0-9][0-9]|[0-9][1-9][0-9])">
161+
<input type="text" id="sw2_auto_off_delay" placeholder="HH:MM:SS.sss" required
162+
pattern="(0*([0-9]|1[0-9]|2[0-3])):(0*([0-9]|[1-4][0-9]|5[0-9])):(0*([0-9]|[1-4][0-9]|5[0-9])).([0-9][0-9][0-9])">
161163
</div>
162164
<div class="form-control">
163165
<label></label>

mos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
author: 'Deomid "rojer" Ryabkov'
22
description: A HomeKit firmware for Shelly switches
3-
version: 1.9.0
3+
version: 1.9.1
44
platform: esp8266
55

66
libs_version: 2.17.0

0 commit comments

Comments
 (0)