Skip to content

Commit 45cdbc7

Browse files
alan-agius4filipesilva
authored andcommitted
fix(@angular-devkit/build-angular): validate scripts and styles bundleName
Closes #20360 (cherry picked from commit 51cb318)
1 parent 5e53d14 commit 45cdbc7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/angular_devkit/build_angular/src/browser/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@
499499
},
500500
"bundleName": {
501501
"type": "string",
502+
"pattern": "^[\\w\\-.]*$",
502503
"description": "The bundle name for this extra entry point."
503504
},
504505
"inject": {

packages/angular_devkit/build_angular/src/karma/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@
238238
},
239239
"bundleName": {
240240
"type": "string",
241+
"pattern": "^[\\w\\-.]*$",
241242
"description": "The bundle name for this extra entry point."
242243
},
243244
"inject": {

0 commit comments

Comments
 (0)