Skip to content

Commit 659bf38

Browse files
authored
Merge branch 'v1.1.7' into fix-hyphens-1.96
2 parents f713c98 + ae82b70 commit 659bf38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

classes/transports/modbus_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def read_serial_number(self) -> str:
105105
print(sn2)
106106
print(sn3)
107107

108-
if not re.search("[^a-zA-Z0-9\_]", sn2) :
108+
if not re.search("[^a-zA-Z0-9_]", sn2) :
109109
serial_number = sn2
110110

111111
return serial_number
@@ -262,7 +262,7 @@ def analyze_protocol(self, settings_dir : str = 'protocols'):
262262
def evaluate_score(entry : registry_map_entry, val):
263263
score = 0
264264
if entry.data_type == Data_Type.ASCII:
265-
if val and not re.match('[^a-zA-Z0-9\_\-]', val): #validate ascii
265+
if val and not re.match('[^a-zA-Z0-9_-]', val): #validate ascii
266266
mod = 1
267267
if entry.concatenate:
268268
mod = len(entry.concatenate_registers)

0 commit comments

Comments
 (0)