Skip to content

Commit c99fe11

Browse files
authored
Merge pull request #2512 from lorenzozanee/fix/issue-2481-tsx-ampersand
test(parse): cover the reported TSX ampersand fragment (#2481)
2 parents 27dea22 + 6172374 commit c99fe11

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tests/test_parse_coverage.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,6 +1476,7 @@ static const char *const JSX_AMP_BODIES[] = {
14761476
"<p title=\"a&\">x</p>", /* '&' right before the quote */
14771477
"<p>Tom &Jerry</p>", /* '&' + letter in JSX text */
14781478
"<p>Tom & Jerry</p>", /* '&' + space in JSX text */
1479+
"<th className=\"p-4 font-semibold\">Role & Dept</th>", /* #2481 report reproduction */
14791480
"<p>x &1 y</p>", /* '&' + digit in JSX text */
14801481
/* controls: references keep parsing; '& ' / '&1' in attributes */
14811482
"<p title=\"x&amp;y&#38;z & w &1\">A&amp;B &#38; C</p>",

0 commit comments

Comments
 (0)