From 12572c9d7d2ce5a43519099d64d550b8a32d66df Mon Sep 17 00:00:00 2001 From: Flo <52775027+FloEisen@users.noreply.github.com> Date: Wed, 24 Nov 2021 08:36:44 +0100 Subject: [PATCH] Update nb-dt-import.py --- nb-dt-import.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nb-dt-import.py b/nb-dt-import.py index 1ffca5c3..03713437 100755 --- a/nb-dt-import.py +++ b/nb-dt-import.py @@ -9,6 +9,7 @@ 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']