diff --git a/types/html-minifier-terser/html-minifier-terser-tests.ts b/types/html-minifier-terser/html-minifier-terser-tests.ts index fffd6d6c21..dfd600c382 100644 --- a/types/html-minifier-terser/html-minifier-terser-tests.ts +++ b/types/html-minifier-terser/html-minifier-terser-tests.ts @@ -13,7 +13,7 @@ const result = minify('

foo

', { customEventAttributes: [/on-click/], decodeEntities: true, html5: false, - ignoreCustomComments: [/^!/], + ignoreCustomComments: [/^!/, /^\s*#/], ignoreCustomFragments: [/<%[\s\S]*?%>/, /<\?[\s\S]\*?\?>/], includeAutoGeneratedTags: false, keepClosingSlash: false, diff --git a/types/html-minifier-terser/index.d.ts b/types/html-minifier-terser/index.d.ts index 32cec6537f..656a6af09b 100644 --- a/types/html-minifier-terser/index.d.ts +++ b/types/html-minifier-terser/index.d.ts @@ -1,6 +1,6 @@ -// Type definitions for html-minifier-terser 5.0 +// Type definitions for html-minifier-terser 5.1 // Project: https://danielruf.github.io/html-minifier-terser/ -// Definitions by: Piotr Błażejewicz (Peter Blazejewicz) +// Definitions by: Piotr Błażejewicz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace minify { @@ -72,7 +72,7 @@ declare namespace minify { html5?: boolean; /** * Array of regex'es that allow to ignore certain comments, when matched - * @default [/^!/] + * @default [ /^!/, /^\s*#/ ] */ ignoreCustomComments?: RegExp[]; /**