Update nb-dt-import.py

This commit is contained in:
Flo 2021-11-24 08:36:44 +01:00 committed by GitHub
parent ed737e22ee
commit 12572c9d7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@ import argparse
import os
import settings
import sys
import re
counter = Counter(added=0, updated=0, manufacturer=0)
@ -26,7 +27,7 @@ def update_package(path: str, branch: str):
def slugFormat(name):
return name.lower().replace(' ', '_')
return re.sub('\W+','-', name.lower())
YAML_EXTENSIONS = ['yml', 'yaml']