Skip to content

Commit

Permalink
test: add regression test for quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
snyamathi authored and DylanPiercey committed Mar 15, 2023
1 parent d8de146 commit 7a345a8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,15 @@
│ ││ │╰─ text "alert(\"Hello "
│ ││ ╰─ openTagEnd
│ │╰─ tagName "script"
╰─ ╰─ openTagStart
2╭─ <script>alert('${xyz}')</script>
│ ││ ││ │ │ │ │ │ ╰─ closeTagEnd(script)
│ ││ ││ │ │ │ │ ╰─ closeTagName "script"
│ ││ ││ │ │ │ ╰─ closeTagStart "</"
│ ││ ││ │ │ ╰─ text "')"
│ ││ ││ │ ╰─ placeholder:escape.value "xyz"
│ ││ ││ ╰─ placeholder:escape "${xyz}"
│ ││ │╰─ text "alert('"
│ ││ ╰─ openTagEnd
│ │╰─ tagName "script"
╰─ ╰─ openTagStart
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<script>alert("Hello ${xyz}!")</script>
<script>alert("Hello ${xyz}!")</script>
<script>alert('${xyz}')</script>

0 comments on commit 7a345a8

Please sign in to comment.