Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion nb-dt-import.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import os
import settings
import sys
import re


counter = Counter(added=0, updated=0, manufacturer=0)
Expand All @@ -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']

Expand Down