Skip to content

Commit

Permalink
test: add u unicode flag to regex (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Oct 21, 2023
1 parent 042b14b commit eb51c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cors.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ test('Allow only request from a specific origin using regex', t => {
t.plan(8)

const fastify = Fastify()
fastify.register(cors, { origin: /(example|other)\.com/gi })
fastify.register(cors, { origin: /(?:example|other)\.com/giu })

fastify.get('/', (req, reply) => {
reply.send('ok')
Expand Down

0 comments on commit eb51c6c

Please sign in to comment.