Skip to content

Commit 942e0be

Browse files
committed
Merge pull request #57 from rechtar/spread-attributes-spaces
Allow spaces in spread attributes
2 parents bb2254a + 44899da commit 942e0be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parser.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ OPENING_TAG = /// ^
386386
)
387387
)
388388
| \s+[\w-]+ # bare attribute
389-
| \s+\{\.\.\.\s*?[^\s{}]+?\s*?\} # spread attribute
389+
| \s+\{\.\.\.\s*?[^{}]+?\s*?\} # spread attribute
390390
)?
391391
)*?
392392
\s* # whitespace after attr pair
@@ -418,7 +418,7 @@ TAG_ATTRIBUTES = ///
418418
)
419419
)?
420420
)
421-
| (?: \{\.\.\.(\s*?[^\s{}]+?\s*?)\} ) # spread attributes (captured)
421+
| (?: \{\.\.\.(\s*?[^{}]+?\s*?)\} ) # spread attributes (captured)
422422
| ( [\s\n]+ ) # whitespace (captured)
423423
///
424424

0 commit comments

Comments
 (0)