Sudomy
Sudomy copied to clipboard
Added r to handle regex warning
This pull request fixes a SyntaxWarning in exec_resolver.py by adding a raw string prefix (r) to the regex pattern for IP addresses. This change ensures that the backslashes in the regex are interpreted correctly, preventing any warnings or errors.
Changes made:
- Updated the
ip_regexvariable to use a raw string:ip_regex = r"^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])$"
These changes have been tested locally and the script runs without errors or warnings.