]> err.no Git - pwstore/commitdiff
Ignore YAML document seperator
authorAlexander Wirt <formorer@debian.org>
Sat, 5 Oct 2013 10:30:47 +0000 (12:30 +0200)
committerAlexander Wirt <formorer@debian.org>
Sat, 5 Oct 2013 10:30:47 +0000 (12:30 +0200)
pws

diff --git a/pws b/pws
index 83ab6bbfe2b0033ad357ccf6cd7637a5dd514dee..7a43e838cc917b7622435c13cbf3f712f9fd82ac 100755 (executable)
--- a/pws
+++ b/pws
@@ -429,7 +429,7 @@ class EncryptedData
 
   def EncryptedData.targets(text)
     text.split("\n").each do |line|
-      if /^#/.match line
+      if /^(#|---)/.match line
         next
       end
       m = /^access: "?((?:(?:#{GROUP_PATTERN}|#{USER_PATTERN}),?\s*)+)"?/.match line