docs(agent-feedback): file text body and non-null assertion gaps - #259
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #259 +/- ##
=======================================
Coverage 99.89% 99.89%
=======================================
Files 35 35
Lines 4711 4711
Branches 912 912
=======================================
Hits 4706 4706
Misses 4 4
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
File the parser gaps left after 5.18.0. Text-only bodies are lexed as JavaScript, so prose and CSS bodies need a mode that recognizes only placeholders and the closing tag (`<title>It's</title>` fails today), and `<script>` bodies need regex literals lexed so `/["']/g` does not open a string. A TypeScript `!` after whitespace or after `}` is still read as a prefix operator. Also update the escaped-quote item with the `<script>` regex cases it covers (`/\"/g` runs to the end of the file, and `/^https?:\/\//` silently comments out the rest of its line), and a fix direction that keeps `\</style>` closing its tag. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
626839c to
a85cd0a
Compare
Files the parser gaps left after 5.18.0. Text-only bodies are lexed as JavaScript, so prose and CSS bodies need a mode that recognizes only placeholders and the closing tag (
<title>It's</title>fails today), and<script>bodies need regex literals lexed so/["']/gdoes not open a string. A TypeScript!after whitespace or after}is still read as a prefix operator.Also updates the escaped-quote item with the
<script>regex cases it covers (/\"/gruns to the end of the file, and/^https?:\/\//silently comments out the rest of its line), and a fix direction that keeps\</style>closing its tag.🤖 Generated with Claude Code