From c42338d45bf572a0b66e201475312eb4cc10a236 Mon Sep 17 00:00:00 2001 From: Jan-Paul Kleemans Date: Mon, 20 Nov 2023 17:00:20 +0100 Subject: [PATCH] Fix regex --- cypress/integration/spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/spec.js b/cypress/integration/spec.js index 8f19590..c5bb520 100644 --- a/cypress/integration/spec.js +++ b/cypress/integration/spec.js @@ -42,7 +42,7 @@ describe('Vite SVG Loader', () => { }) it('supports ?url param', () => { - cy.get('#url').contains(/^data:image\/svg\+xml|^\/assets\/test\..+\.svg/) + cy.get('#url').contains(/^data:image\/svg\+xml|^\/assets\/test.*\.svg/) }) it('supports ?raw param', () => {