From: Alexander Wirt Date: Sat, 5 Oct 2013 10:30:47 +0000 (+0200) Subject: Ignore YAML document seperator X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=251010f1a8d5b08c6e4e4d37581ebed87c6c2789;p=pwstore Ignore YAML document seperator --- diff --git a/pws b/pws index 83ab6bb..7a43e83 100755 --- 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