Skip to content

Commit

Permalink
utils: to_kebab_case: replace : with -
Browse files Browse the repository at this point in the history
- avoids filename issues on NTFS, consistent with automatic anchor generation
- ref. awesome-selfhosted/awesome-selfhosted-data#33
  • Loading branch information
nodiscc committed Jul 24, 2023
1 parent 2cbe4e1 commit 8218f9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hecat/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def to_kebab_case(string):
"""convert a string to kebab-case, remove some special characters"""
replacements = {
' ': '-',
':': '-',
'(': '',
')': '',
'&': '',
Expand Down

0 comments on commit 8218f9a

Please sign in to comment.