Skip to content

Commit

Permalink
Lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
kbairak committed Jul 26, 2024
1 parent 0ae3414 commit 54f3426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/api/parsers/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function toStr(children, counter = 0) {
} else if (child.type === 'JSXText') {
// Child is not a React element, append as-is
let chunk = child.value;

const [startMatch] = /^[\s\n]*/.exec(child.value);
if (startMatch.includes('\n')) {
chunk = chunk.substring(startMatch.length);
Expand Down

0 comments on commit 54f3426

Please sign in to comment.