Repository navigation
Commit 893ab46
committed
handle a call in the condition and a parenthesised branch
review pointed out two holes. a comma inside a call like isActive(foo, bar)
ended the match early, and a branch wrapped in parens put a ( between the
operator and the literal
a parenthesised group is now consumed as a unit so its commas stay inside it,
and parens are allowed right before the literal. a bare comma or brace still
ends the match so a neighbouring prop is still out of reach1 parent d8000d7 commit 893ab46
2 files changed
Lines changed: 7 additions & 3 deletions
File tree
- packages/@tailwindcss-upgrade/src/codemods/template
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
0 commit comments