diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2022-10-22 22:26:57 +0900 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-24 10:28:42 +0300 |
commit | 480d8e764611d7779bf8e0245640a6b84af626f9 (patch) | |
tree | 4ca59b36409ce564020b50853b8f1e53d3c461d8 /modules/api/processing.py | |
parent | 37dd6deafb831a809eaf7ae8d232937a8c7998e7 (diff) |
replace "srt.replace()" in apply_filename_pattern() with equivalent re.sub()
the file_decoration passed into apply_filename_pattern() is formatted to lowercase to increase compatibility
the use of case sensitive srt.replace()
but because the newly implemented "time format" is case sensitive
the lowercasing the file_decoration will cause time format to be broken
in order to resolve this issue
I decided to replace every srt.replace() and in if "str" in x to regular expression (case insensitive) equivalent
Diffstat (limited to 'modules/api/processing.py')
0 files changed, 0 insertions, 0 deletions