gui-host-lookup/generic/sanitize.py
2024-08-14 15:34:48 +02:00

8 lines
173 B
Python

import re
def strip_and_list(hosts):
if hosts.strip() != '':
sanitized = re.split("; |, | |\n", hosts)
return sanitized
# break