Revert "Lint: W605 invalid escape sequence '\$'"
This reverts commit 76b1cafdcc
.
This commit is contained in:
@ -576,7 +576,7 @@ def get_list_dhcp(zk_conn, network, limit, only_static=False, is_fuzzy=True):
|
||||
# Implcitly assume fuzzy limits
|
||||
if not re.match('[^].*', limit):
|
||||
limit = '.*' + limit
|
||||
if not re.match('.*[$]', limit):
|
||||
if not re.match('.*\$', limit):
|
||||
limit = limit + '.*'
|
||||
except Exception as e:
|
||||
return False, 'Regex Error: {}'.format(e)
|
||||
@ -622,7 +622,7 @@ def get_list_acl(zk_conn, network, limit, direction, is_fuzzy=True):
|
||||
# Implcitly assume fuzzy limits
|
||||
if not re.match('[^].*', limit):
|
||||
limit = '.*' + limit
|
||||
if not re.match('.*[$]', limit):
|
||||
if not re.match('.*\$', limit):
|
||||
limit = limit + '.*'
|
||||
except Exception as e:
|
||||
return False, 'Regex Error: {}'.format(e)
|
||||
|
Reference in New Issue
Block a user