mirror of https://github.com/nucypher/nucypher.git
Fix python warning about regex string syntax. The string is correct but python is warning about the escape sequence and assumes it was a mistake.
parent
43ba98d36e
commit
dcf0b1b667
|
@ -229,7 +229,7 @@ def check_and_convert_big_int_string_to_int(value: str) -> Union[str, int]:
|
|||
"""
|
||||
Check if a string is a big int string and convert it to an integer, otherwise return the string.
|
||||
"""
|
||||
if re.fullmatch("^-?\d+n$", value):
|
||||
if re.fullmatch(r"^-?\d+n$", value):
|
||||
try:
|
||||
result = int(value[:-1])
|
||||
return result
|
||||
|
|
Loading…
Reference in New Issue