Browse Source

Validate also lower the case of domains

tags/v2.2
Geoffrey Frogeye 2 months ago
parent
commit
0b9e2d0975
Signed by: geoffrey <geoffrey@frogeye.fr> GPG Key ID: D8A7ECA00A8CD3DD
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      .gitignore
  2. +1
    -1
      validate_list.py

+ 1
- 0
.gitignore View File

@@ -1,3 +1,4 @@
*.log
*.p
.env
__pycache__

+ 1
- 1
validate_list.py View File

@@ -29,7 +29,7 @@ if __name__ == '__main__':
args = parser.parse_args()

for line in args.input:
line = line.strip()
line = line[:-1].lower()
if (args.domain and database.Database.validate_domain(line)) or \
(args.ip4 and database.Database.validate_ip4address(line)):
print(line, file=args.output)

Loading…
Cancel
Save