Merge pull request #165 from HugeekMcGill/main

Adding replacement for wildcard and dash inputs
pull/166/head
Alexandre Dulaunoy 2020-09-30 22:48:09 +02:00 committed by GitHub
commit de11f6de6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,9 @@ def get_lists(url):
for service in service_list:
for url in service.get('urls', []):
if url.find(".*.") == -1:
lurls.append(url.replace('*', ''))
lurls.append(url.replace('*.', '').replace('*-', '').replace('*', ''))
else:
lurls.append(url.rsplit('.*.',1)[1])
for ip in service.get('ips', []):
lips.append(ip)