Kaynağa Gözat

Bugfix: local path regex should not match s3 and b2 urls

Fabian Fröhlich 1 ay önce
ebeveyn
işleme
9a5d2bc3ce
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/borg/helpers/parseformat.py

+ 1 - 1
src/borg/helpers/parseformat.py

@@ -451,7 +451,7 @@ class Location:
     # path may contain any chars. to avoid ambiguities with other regexes,
     # it must not start with "//" nor with "scheme://" nor with "rclone:".
     local_path_re = r"""
-        (?!(//|(ssh|socket|sftp|file)://|rclone:))
+        (?!(//|(ssh|socket|sftp|file)://|(rclone|s3|b2):))
         (?P<path>.+)
     """