Skip to content
Browse files

Merge pull request #649 from haml/preserve-pattern-regex

Fix preserve_pattern regex in buffer.rb
  • Loading branch information...
2 parents d5872ce + 5cdbb44 commit 4c53720be281d7d0d30f5f552bc5747880e7c46a @norman norman committed Mar 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/haml/buffer.rb
View
2 lib/haml/buffer.rb
@@ -98,7 +98,7 @@ def initialize(upper = nil, options = {})
# @real_tabs + @tabulation is the number of tabs actually output
@real_tabs = 0
- @preserve_pattern = /<[\s]*#{@options[:preserve].join("|")}/i
+ @preserve_pattern = /<[\s]*(?:#{@options[:preserve].join("|")})/i
end
# Appends text to the buffer, properly tabulated.

0 comments on commit 4c53720

Please sign in to comment.
Something went wrong with that request. Please try again.