Sudomy icon indicating copy to clipboard operation
Sudomy copied to clipboard

Added r to handle regex warning

Open 0xSaikat opened this issue 1 year ago • 0 comments

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_regex variable 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.

0xSaikat avatar Jun 27 '24 10:06 0xSaikat