Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): add pattern validations for `brow…
Browse files Browse the repository at this point in the history
…serTarget` and `serverTarget`
  • Loading branch information
alan-agius4 authored and vikerman committed Nov 27, 2019
1 parent c48a9d6 commit ee3be89
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
"properties": {
"browserTarget": {
"type": "string",
"description": "Target to build."
"description": "Target to build.",
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
},
"serverTarget": {
"type": "string",
"description": "Server target to use for rendering the app shell."
"description": "Server target to use for rendering the app shell.",
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
},
"appModuleBundle": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"browserTarget": {
"type": "string",
"description": "Target to serve.",
"pattern": ".+:.+(:.+)?"
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
},
"port": {
"type": "number",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"properties": {
"browserTarget": {
"type": "string",
"description": "Target to extract from."
"description": "Target to extract from.",
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
},
"format": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
},
"devServerTarget": {
"type": "string",
"description": "Dev server target to run tests against."
"description": "Dev server target to run tests against.",
"pattern": "^([^:\\s]+:[^:\\s]+(:[^\\s]+)?)?$"
},
"specs": {
"type": "array",
Expand Down

0 comments on commit ee3be89

Please sign in to comment.