lib/chamber/file.rb in chamber-2.9.0 vs lib/chamber/file.rb in chamber-2.9.1
- old
+ new
@@ -80,19 +80,19 @@
escaped_name = Regexp.escape(name_pieces.last)
escaped_value = Regexp.escape(value)
file_contents.
- sub!(
+ sub!(
/^(\s*)_secure_#{escaped_name}(\s*):(\s*)['"]?#{escaped_value}['"]?$/,
"\\1_secure_#{name_pieces.last}\\2:\\3#{secure_value}",
- )
+ )
file_contents.
- sub!(
+ sub!(
/^(\s*)_secure_#{escaped_name}(\s*):(\s*)\|((?:\n\1\s{2}.*)+)/,
"\\1_secure_#{name_pieces.last}\\2:\\3#{secure_value}",
- )
+ )
end
write(file_contents)
end