From 42e0e0fa5cfbdf3931470cc924ea065a765f29f5 Mon Sep 17 00:00:00 2001 From: tony-sull Date: Thu, 7 Apr 2022 18:27:20 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/vite-plugin-build-css/index.ts | 2 +- packages/astro/test/astro-css-bundling-import.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/astro/src/vite-plugin-build-css/index.ts b/packages/astro/src/vite-plugin-build-css/index.ts index dfbfeaa28..150cd7451 100644 --- a/packages/astro/src/vite-plugin-build-css/index.ts +++ b/packages/astro/src/vite-plugin-build-css/index.ts @@ -48,7 +48,7 @@ function isPageStyleVirtualModule(id: string) { } function isRawOrUrlModule(id: string) { - return id.match(/(\?|\&)([^=]+)(raw|url)/gm) + return id.match(/(\?|\&)([^=]+)(raw|url)/gm); } interface PluginOptions { diff --git a/packages/astro/test/astro-css-bundling-import.test.js b/packages/astro/test/astro-css-bundling-import.test.js index 5bb37dfd4..665410c1f 100644 --- a/packages/astro/test/astro-css-bundling-import.test.js +++ b/packages/astro/test/astro-css-bundling-import.test.js @@ -75,5 +75,5 @@ describe('CSS Bundling (ESM import)', () => { // this makes sure the styles imported with ?url were inlined let inlineCss = $('style').html().replace(/\s/g, '').replace('/n', ''); expect(inlineCss.indexOf('p{color:purple;}')).to.be.greaterThanOrEqual(0); - }) + }); });