Skip to content

Commit

Permalink
fix: handle edge case in failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Jul 13, 2023
1 parent ad6ddec commit 815d971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/printer/print-to-tsx.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ declare const Astro: Readonly<import('astro').AstroGlobal<%s>>`, props.Ident)
p.print("}}\n")
p.addSourceMapping(loc.Loc{Start: n.Loc[0].Start + len(n.Data)})
return
} else if strings.ContainsAny(n.Data, "{}<>'\"") {
} else if strings.ContainsAny(n.Data, "{}<>'\"") && n.Data[0] != '<' {
p.addNilSourceMapping()
p.print("{`")
p.printTextWithSourcemap(escapeText(n.Data), n.Loc[0])
Expand Down

0 comments on commit 815d971

Please sign in to comment.