Skip to content

Commit

Permalink
Fix mjml attributes in the root tag matching
Browse files Browse the repository at this point in the history
  • Loading branch information
m-basov committed Mar 15, 2020
1 parent ae68715 commit 1cb766c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/mjml/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Parser
class InvalidTemplate < StandardError; end
class ExecutableNotFound < StandardError; end

ROOT_TAGS_REGEX = %r{<mjml>.*<\/mjml>}im
ROOT_TAGS_REGEX = %r{<mjml.*>.*<\/mjml>}im

def initialize
MJML.logger.debug("Path: #{mjml_bin};" \
Expand Down
2 changes: 1 addition & 1 deletion lib/mjml/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module MJML
VERSION = '0.3.5'.freeze
VERSION = '0.3.6'.freeze
end
2 changes: 1 addition & 1 deletion spec/fixtures/hello.mjml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<mjml>
<mjml owa="desktop">
<mj-body>
<mj-container>
<mj-section padding-top="20px 10%">
Expand Down

0 comments on commit 1cb766c

Please sign in to comment.