Skip to content

Commit

Permalink
fix: use function search install of match
Browse files Browse the repository at this point in the history
  • Loading branch information
Akimio521 committed Jan 9, 2025
1 parent d709dbe commit 5efb9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/modules/alist2strm/alist2strm.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ async def __cleanup_local_files(self) -> None:

for file_path in files_to_delete:
# 检查文件是否匹配忽略正则表达式
if self.sync_ignore_pattern and self.sync_ignore_pattern.match(
if self.sync_ignore_pattern and self.sync_ignore_pattern.search(
file_path.name
):
logger.debug(f"文件 {file_path.name} 在忽略列表中,跳过删除")
Expand Down

0 comments on commit 5efb9be

Please sign in to comment.