Validate also lower the case of domains

このコミットが含まれているのは:
Geoffrey Frogeye 2019-12-25 15:31:20 +01:00
コミット 0b9e2d0975
署名者: geoffrey
GPGキーID: D8A7ECA00A8CD3DD
2個のファイルの変更2行の追加1行の削除

1
.gitignore vendor済み
ファイルの表示

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

ファイルの表示

@ -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)