mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-25 09:26:17 -05:00
Matching stem/suffix style.
This commit is contained in:
parent
2b64a2d0ce
commit
fef8e123a0
1 changed files with 2 additions and 2 deletions
|
|
@ -606,9 +606,9 @@ def split_file_name_words(name: str) -> List[str]:
|
|||
raise ValueError(f'Invalid filename: {name}')
|
||||
|
||||
try:
|
||||
name2, suffix = split_path_stem_and_suffix(name)
|
||||
stem, suffix = split_path_stem_and_suffix(name)
|
||||
words = []
|
||||
for word1 in WHITESPACE.split(name2):
|
||||
for word1 in WHITESPACE.split(stem):
|
||||
if '-' in word1[1:]:
|
||||
words.extend(word1.split('-'))
|
||||
words.append(word1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue