Skip to content

Commit

Permalink
chore(index): add u unicode flag to regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Oct 21, 2023
1 parent 86ceff0 commit 4df738d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4df738d

Please sign in to comment.