We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f4428f commit 1654acfCopy full SHA for 1654acf
packages/angular/build/src/tools/vite/middlewares/assets-middleware.ts
@@ -88,7 +88,7 @@ export function createAngularAssetsMiddleware(
88
// Shim the stylesheet if a component ID is provided
89
if (componentId.length > 0) {
90
// Validate component ID
91
- if (/^[_.\-\p{Letter}\d]+-c\d{9}$/u.test(componentId)) {
+ if (/^[_.\-\p{Letter}\d]+-c\d+$/u.test(componentId)) {
92
loadEsmModule<typeof import('@angular/compiler')>('@angular/compiler')
93
.then((compilerModule) => {
94
const encapsulatedData = compilerModule.encapsulateStyle(
0 commit comments