Skip to content

Commit 4ded859

Browse files
committed
knip
1 parent d276fd5 commit 4ded859

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/filter-entries.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Coverage } from './parse-coverage.js'
22
import { ext } from './ext.js'
33
import { remap_html } from './remap-html.js'
44

5-
export function is_html(text: string): boolean {
5+
function is_html(text: string): boolean {
66
return /<\/?(html|body|head|div|span|script|style)/i.test(text)
77
}
88

@@ -11,11 +11,11 @@ const SELECTOR_REGEX = /(@[a-z-]+|\[[^\]]+\]|[a-zA-Z_#.-][a-zA-Z0-9_-]*)\s*\{/
1111
// Check for CSS properties (property: value pattern)
1212
const DECLARATION_REGEX = /^\s*[a-zA-Z-]+\s*:\s*.+;?\s*$/m
1313

14-
export function is_css_like(text: string): boolean {
14+
function is_css_like(text: string): boolean {
1515
return SELECTOR_REGEX.test(text) || DECLARATION_REGEX.test(text)
1616
}
1717

18-
export function is_js_like(text: string): boolean {
18+
function is_js_like(text: string): boolean {
1919
try {
2020
// Only parses the input, does not execute it.
2121
// NEVER EXECUTE THIS UNTRUSTED CODE!!!

0 commit comments

Comments
 (0)