瀏覽代碼

docs: add missing leading slashes in help patterns (#5869)

docs: add missing leading slashes in help patterns, fixes #5857
remyabel 4 年之前
父節點
當前提交
c4bb9b161c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/borg/archiver.py

+ 2 - 2
src/borg/archiver.py

@@ -2367,8 +2367,8 @@ class Archiver:
             /home/*/junk
             /home/*/junk
             *.tmp
             *.tmp
             fm:aa:something/*
             fm:aa:something/*
-            re:^home/[^/]\\.tmp/
-            sh:home/*/.thumbnails
+            re:^/home/[^/]+\\.tmp/
+            sh:/home/*/.thumbnails
             # Example with spaces, no need to escape as it is processed by borg
             # Example with spaces, no need to escape as it is processed by borg
             some file with spaces.txt
             some file with spaces.txt
             EOF
             EOF