Skip to content

Commit 38b3ec3

Browse files
committed
connman: use raw-strings for regexs
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
1 parent 5981d73 commit 38b3ec3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

resources/lib/modules/connman.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ class connman(modules.Module):
432432
'entry': 'Tethering',
433433
'value': ['1'],
434434
},
435-
'validate': '^([a-zA-Z0-9](?:[a-zA-Z0-9-\.]*[a-zA-Z0-9]))$',
435+
'validate': r'^([a-zA-Z0-9](?:[a-zA-Z0-9-\.]*[a-zA-Z0-9]))$',
436436
'InfoText': 728,
437437
},
438438
'TetheringPassphrase': {
@@ -488,7 +488,7 @@ class connman(modules.Module):
488488
'value': '',
489489
'action': 'set_timeservers',
490490
'type': 'text',
491-
'validate': '^([a-zA-Z0-9](?:[a-zA-Z0-9-\.]*[a-zA-Z0-9]))$|^$',
491+
'validate': r'^([a-zA-Z0-9](?:[a-zA-Z0-9-\.]*[a-zA-Z0-9]))$|^$',
492492
'InfoText': 732,
493493
},
494494
'1': {
@@ -497,7 +497,7 @@ class connman(modules.Module):
497497
'value': '',
498498
'action': 'set_timeservers',
499499
'type': 'text',
500-
'validate': '^([a-zA-Z0-9](?:[a-zA-Z0-9-\.]*[a-zA-Z0-9]))$|^$',
500+
'validate': r'^([a-zA-Z0-9](?:[a-zA-Z0-9-\.]*[a-zA-Z0-9]))$|^$',
501501
'InfoText': 733,
502502
},
503503
'2': {
@@ -506,7 +506,7 @@ class connman(modules.Module):
506506
'value': '',
507507
'action': 'set_timeservers',
508508
'type': 'text',
509-
'validate': '^([a-zA-Z0-9](?:[a-zA-Z0-9-\.]*[a-zA-Z0-9]))$|^$',
509+
'validate': r'^([a-zA-Z0-9](?:[a-zA-Z0-9-\.]*[a-zA-Z0-9]))$|^$',
510510
'InfoText': 734,
511511
},
512512
},

0 commit comments

Comments
 (0)