Skip to content

Commit 44899da

Browse files
committed
Allow spaces in spread attributes
1 parent 42245fd commit 44899da

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)