Skip to content

Commit

Permalink
add support for jsx spread properties to xmlparser
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoThePoro committed Dec 3, 2016
1 parent 4397d7f commit 4bb43b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parsers.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports =
type: @name
length: 0
}
match = text.match(/^<(\/)?([^\s\/<>!][^\s\/<>]*)(\s+([\w-:]+)(=["'`{]([\S\s]*?)["'`}])?)*\s*(\/)?>/i)
match = text.match(/^<(\/)?([^\s\/<>!][^\s\/<>]*)(\s+([\w-:]+|\{.*?\})(=["'`{]([\S\s]*?)["'`}])?)*\s*(\/)?>/i)
if match
result.element = match[2]
result.length = match[0].length
Expand Down

0 comments on commit 4bb43b4

Please sign in to comment.