allow ): and ]: in title
This commit is contained in:
parent
76bb5b53d3
commit
2f9e27b2f5
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ def parse_path(path, directory_key='director'):
|
||||||
string = re.sub(re.compile('(?<=\w)_(?=\w)', re.U), '/', string)
|
string = re.sub(re.compile('(?<=\w)_(?=\w)', re.U), '/', string)
|
||||||
string = re.sub(' _ ', ' / ', string)
|
string = re.sub(' _ ', ' / ', string)
|
||||||
# 'foo_ ' is ':'
|
# 'foo_ ' is ':'
|
||||||
string = re.sub(re.compile('(?<=\w)_ ', re.U), ': ', string)
|
string = re.sub(re.compile('(?<=[\w\)\]])_ ', re.U), ': ', string)
|
||||||
string = unicodedata.normalize('NFD', string)
|
string = unicodedata.normalize('NFD', string)
|
||||||
return string
|
return string
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue