Revert "Lint: W605 invalid escape sequence '\$'"

This reverts commit 76b1cafdcc.
This commit is contained in:
2020-11-07 17:38:03 -05:00
parent d37e5a0c0b
commit f33398458e
5 changed files with 11 additions and 11 deletions

View File

@ -691,7 +691,7 @@ def get_list(zk_conn, node, state, limit, 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)