plan(textarea-editor): make Prism bash-grammar grep minifier-safe

Spec reviewer caught that the literal 'Prism.languages.bash' string
doesn't appear in the minified prism.js (minifier renames Prism→e).
Switch the verification grep to match either the bash shebang token
or any languages.bash assignment; both survive minification.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
mwiegand 2026-05-16 19:10:56 +02:00
parent 02e9edd4ed
commit 4a1b6d5fac
No known key found for this signature in database

View file

@ -79,10 +79,12 @@ Verify:
```bash ```bash
ls -la l4d2web/l4d2web/static/vendor/prism.{js,css} ls -la l4d2web/l4d2web/static/vendor/prism.{js,css}
grep -c 'Prism.languages.bash' l4d2web/l4d2web/static/vendor/prism.js # Prism's minified bundle renames `Prism``e`, so grep for the
# bash-specific shebang regex that ships in the bash grammar instead.
grep -cE 'shebang|languages\.bash' l4d2web/l4d2web/static/vendor/prism.js
``` ```
Expected: `prism.js` around 1525 KB; `prism.css` around 13 KB. Grep count ≥1 (confirming the bash grammar got included). Expected: `prism.js` around 1525 KB; `prism.css` around 13 KB. Grep count ≥1 (confirming the bash grammar got included — both `shebang` token and the language attachment are present in the minified bundle).
- [ ] **Step 2: Download CodeJar from unpkg** - [ ] **Step 2: Download CodeJar from unpkg**