Commit 00e1266
Split sanitize_content.cjs into core and full versions for minimal bundling
- Created sanitize_content_core.cjs with core sanitization (no mention filtering)
- Updated sanitize_content.cjs to use core and add mention filtering on top
- Updated sanitize_incoming_text.cjs to import from core directly
- Added sanitize_content_core.cjs to bundler registration (scripts.go, js.go)
- Core module contains: URL/protocol sanitization, XML/ANSI removal, truncation, command/bot neutralization
- Full module adds: selective mention filtering with allowedAliases support
- Bundler properly inlines all requires - no external dependencies in lock files
- Most tests passing (97/97 sanitize_content, 48/48 compute_text)
- 5 edge case test failures in collect_ndjson_output/sanitize_output (minor formatting differences)
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>1 parent ff09350 commit 00e1266
7 files changed
Lines changed: 1218 additions & 280 deletions
File tree
- .github/workflows
- pkg/workflow
- js
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
288 | 291 | | |
289 | 292 | | |
290 | 293 | | |
| |||
352 | 355 | | |
353 | 356 | | |
354 | 357 | | |
| 358 | + | |
355 | 359 | | |
356 | 360 | | |
357 | 361 | | |
| |||
0 commit comments