Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit e25befc

Browse files
author
KotlinIsland
committed
fix unescaped regex
1 parent d21b12e commit e25befc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class Request implements APIRequest {
146146
shouldCompress = true
147147
} else if (/^application\/(javascript|typecript|wasm|json|xml)/i.test(contentType)) {
148148
shouldCompress = true
149-
} else if (/^image\/svg+xml/i.test(contentType)) {
149+
} else if (/^image\/svg\+xml/i.test(contentType)) {
150150
shouldCompress = true
151151
}
152152
}

0 commit comments

Comments
 (0)