diff --git a/packages/@vue/cli-service/__tests__/cors.spec.js b/packages/@vue/cli-service/__tests__/cors.spec.js
index aa8ad78d1..f1942ad35 100644
--- a/packages/@vue/cli-service/__tests__/cors.spec.js
+++ b/packages/@vue/cli-service/__tests__/cors.spec.js
@@ -30,9 +30,9 @@ test('build', async () => {
// expect(index).toMatch(/]+app[^>]+\.css rel=preload as=style crossorigin>/)
// should apply crossorigin and add integrity to scripts and css
- expect(index).toMatch(/