Matching stem/suffix style.

This commit is contained in:
Roland 2022-12-15 09:00:39 -07:00
parent 2b64a2d0ce
commit fef8e123a0
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -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)