mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Fix notification param prefix/suffix without literal text
This commit is contained in:
parent
006cfd1ffa
commit
3510224cde
1 changed files with 13 additions and 14 deletions
|
@ -1895,9 +1895,8 @@ class CustomFormatter(Formatter):
|
|||
prefix = None
|
||||
suffix = None
|
||||
|
||||
if real_format_string != format_string[1:-1]:
|
||||
matches = re.findall(r"`.*?`", real_format_string)
|
||||
temp_format_string = re.sub(r"`.*`", "{}", real_format_string)
|
||||
matches = re.findall(r'`.*?`', real_format_string)
|
||||
temp_format_string = re.sub(r'`.*`', '{}', real_format_string)
|
||||
|
||||
prefix_split = temp_format_string.split('<')
|
||||
if len(prefix_split) == 2:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue