Skip to content

Commit 056b4b6

Browse files
committed
fix(text): add missing escape in base64 regex
Regex requires / to be escaped in character groups. Noted on PR #3457
1 parent 5f31f52 commit 056b4b6

File tree

1 file changed

+1
-1
lines changed
  • custom_components/tuya_local

1 file changed

+1
-1
lines changed

custom_components/tuya_local/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(self, device: TuyaLocalDevice, config: TuyaEntityConfig):
6060
if self._value_dp.rawtype == "hex":
6161
self._attr_pattern = "[0-9a-fA-F]*"
6262
elif self._value_dp.rawtype == "base64":
63-
self._attr_pattern = "[-A-Za-z0-9+/]*={0,3}"
63+
self._attr_pattern = "[-A-Za-z0-9+\/]*={0,3}"
6464
# TODO: general pattern support
6565

6666
if hasattr(self, "_attr_pattern"):

0 commit comments

Comments
 (0)