diff --git a/src/__tests__/ui-inline-scripts-parse.test.ts b/src/__tests__/ui-inline-scripts-parse.test.ts new file mode 100644 index 0000000..b214cb0 --- /dev/null +++ b/src/__tests__/ui-inline-scripts-parse.test.ts @@ -0,0 +1,55 @@ +/** + * Regression guard for issue #111 — "APP doesn't initialize / unresponsive". + * + * The SPA is a single classic ` while the in-string one is written `<\/script>`. + */ +function inlineScripts(source: string): string[] { + const blocks: string[] = []; + const re = /