From 4df738dcb646def73da870f182c270d01cb84431 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sat, 21 Oct 2023 10:56:27 +0100 Subject: [PATCH] chore(index): add `u` unicode flag to regex --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e0144a5..4512b78 100644 --- a/index.js +++ b/index.js @@ -108,7 +108,7 @@ function fastifyCompress (fastify, opts, next) { next() } -const defaultCompressibleTypes = /^text\/(?!event-stream)|(?:\+|\/)json(?:;|$)|(?:\+|\/)text(?:;|$)|(?:\+|\/)xml(?:;|$)|octet-stream(?:;|$)/ +const defaultCompressibleTypes = /^text\/(?!event-stream)|(?:\+|\/)json(?:;|$)|(?:\+|\/)text(?:;|$)|(?:\+|\/)xml(?:;|$)|octet-stream(?:;|$)/u function processCompressParams (opts) { /* istanbul ignore next */