File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
angular_devkit/core/src/experimental/workspace Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 381
381
"type" : " string" ,
382
382
"description" : " Specifies the source locale of the application." ,
383
383
"default" : " en-US" ,
384
- "pattern" : " ^[a-z]{2}(-[a-zA-Z]{2,})?$"
384
+ "$comment" : " IETF BCP 47 language tag (simplified)" ,
385
+ "pattern" : " ^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8})?$"
385
386
},
386
387
{
387
388
"type" : " object" ,
390
391
"code" : {
391
392
"type" : " string" ,
392
393
"description" : " Specifies the locale code of the source locale" ,
393
- "pattern" : " ^[a-z ]{2}(-[a-zA-Z]{2, })?$"
394
+ "pattern" : " ^[a-zA-Z ]{2,3 }(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8 })?$"
394
395
},
395
396
"baseHref" : {
396
397
"type" : " string" ,
Original file line number Diff line number Diff line change 136
136
"type" : " string" ,
137
137
"description" : " Specifies the source locale of the application." ,
138
138
"default" : " en-US" ,
139
- "pattern" : " ^[a-z ]{2}(-[a-zA-Z]{2, })?$"
139
+ "pattern" : " ^[a-zA-Z ]{2,3 }(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8 })?$"
140
140
},
141
141
{
142
142
"type" : " object" ,
145
145
"code" : {
146
146
"type" : " string" ,
147
147
"description" : " Specifies the locale code of the source locale" ,
148
- "pattern" : " ^[a-z ]{2}(-[a-zA-Z]{2, })?$"
148
+ "pattern" : " ^[a-zA-Z ]{2,3 }(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8 })?$"
149
149
},
150
150
"baseHref" : {
151
151
"type" : " string" ,
You can’t perform that action at this time.
0 commit comments