mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-13 11:57:19 +01:00
Review found three spellings that got past the regex guard and still hung --to docx: a data-src decoy, a percent-encoded separator, and an unquoted encoded colon. html-to-docx sizes images on three paths, and buildImage URI-decodes the whole src first. The guard now mirrors all three, drops ICNS (the only input its bundled image-size routes to the looping parser) instead of allowlisting formats, so BMP and TIFF embed as before, and re-parses the result with html-to-docx's own html-to-vdom to fail closed on anything the regex misreads. The golden test tolerates CRLF checkouts on Windows. Version Gate treats a failed file lookup as an empty list, so a partial paginated result cannot decide the exemption. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
21 lines
431 B
JSON
21 lines
431 B
JSON
{
|
|
"extends": "./tsconfig.json",
|
|
"include": [
|
|
"test/**/*.ts",
|
|
"test-setup.ts",
|
|
"browse/test/**/*.ts",
|
|
"make-pdf/test/**/*.ts",
|
|
"design/test/**/*.ts",
|
|
"ios-qa/**/*.test.ts",
|
|
"ios-qa/daemon/test/**/*.ts",
|
|
"make-pdf/src/html-to-docx.d.ts",
|
|
"make-pdf/src/html-to-vdom.d.ts"
|
|
],
|
|
"exclude": [
|
|
"lib/diagram-render/**",
|
|
"**/node_modules/**",
|
|
"**/dist/**",
|
|
"test/fixtures/**"
|
|
]
|
|
}
|