Skip to content

Commit

Permalink
fix(@angular/cli): improve matching range to match beta/rc (#4989)
Browse files Browse the repository at this point in the history
  • Loading branch information
hansl authored Feb 24, 2017
1 parent 554e7f9 commit d2d788b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
},
"homepage": "https://github.com/angular/angular-cli",
"dependencies": {
"@angular/compiler": "^2.3.1",
"@angular/compiler-cli": "^2.3.1",
"@angular/core": "^2.3.1",
"@angular/tsc-wrapped": "^0.5.0",
"@angular/compiler": ">=2.3.1 <5.0.0 || >=4.0.0-beta <5.0.0",
"@angular/compiler-cli": ">=2.3.1 <5.0.0 || >=4.0.0-beta <5.0.0",
"@angular/core": ">=2.3.1 <5.0.0 || >=4.0.0-beta <5.0.0",
"@angular/tsc-wrapped": ">=0.5.0 <5.0.0 || >=4.0.0-beta <5.0.0",
"autoprefixer": "^6.5.3",
"chalk": "^1.1.3",
"common-tags": "^1.3.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/@angular/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
},
"homepage": "https://github.com/angular/angular-cli",
"dependencies": {
"@angular/compiler": ">=2.3.1 <5.0.0",
"@angular/compiler-cli": ">=2.3.1 <5.0.0",
"@angular/core": ">=2.3.1 <5.0.0",
"@angular/tsc-wrapped": ">=0.5.0 <5.0.0",
"@angular/compiler": ">=2.3.1 <5.0.0 || >=4.0.0-beta <5.0.0",
"@angular/compiler-cli": ">=2.3.1 <5.0.0 || >=4.0.0-beta <5.0.0",
"@angular/core": ">=2.3.1 <5.0.0 || >=4.0.0-beta <5.0.0",
"@angular/tsc-wrapped": ">=0.5.0 <5.0.0 || >=4.0.0-beta <5.0.0",
"@ngtools/json-schema": "1.0.3",
"@ngtools/webpack": "1.2.10",
"autoprefixer": "^6.5.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/@angular/cli/utilities/validate-project-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {oneLine, stripIndent} from 'common-tags';

const SilentError = require('silent-error');

const projectNameRegexp = /^[a-zA-Z][.0-9a-zA-Z]*(-[a-zA-Z][.0-9a-zA-Z]*)*$/;
const projectNameRegexp = /^[a-zA-Z][.0-9a-zA-Z]*(-[.0-9a-zA-Z]*)*$/;
const unsupportedProjectNames = ['test', 'ember', 'ember-cli', 'vendor', 'app'];

function getRegExpFailPosition(str: string): number | null {
Expand Down

0 comments on commit d2d788b

Please sign in to comment.