Regular expressions in `consts.py`
There are 3 regular expressions in consts.py:
REGEX_DOMAIN = r"^[a-zA-Z\d-]{1,60}(\.[a-zA-Z\d-]{1,60})*$"
REGEX_IP = r"^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$"
REGEX_PASSWORD = r"^(?=.*[a-zA-Z])\S{12,}$"
This is confusing, as there is a separate place for regexes: regex.py.
Someone should:
- check if these 3 regexes are actually used
- remove them or move them to
regex.py - if
REGEX_IPis actually used, it should also match v6 addresses
Related: #857
Should I consider working on this myself , or check if any newcomer wants to collaborate..? as its good first issue!
Hey @AdeshDeshmukh ! When your current PR is merged, I can assign you. Or you can pick something else and leave this for a new contributor.
is this open? @regulartim ?
Hi @Demiserular . Yes, it is. But you are already assigned to a different issue.
Hi @regulartim, I am new to the repository and would like to take this up as my first issue. Could you please assign it to me?
Hi @Izhaan60 ! Sure, this is a good issue to start with! :)
Hi @regulartim, I saw your message on PR #1712. I'd like to pick this up. My plan is to move the regex constants from consts.py to regex.py and apply the ruff check . --fix and # noqa: S105 fixes to get it clean. Can I be assigned?