Skip to content

Commit

Permalink
fix(@angular/cli): remove redundant period in deprecation warning
Browse files Browse the repository at this point in the history
As `parser.ts` currently always adds a period at the end of the warning message and the `x-deprecated` messages also have one, this removes the always added one to avoid a double period in the warning message.

Fixes:

    Option "styleext" is deprecated: Use "style" instead..

to:

    Option "styleext" is deprecated: Use "style" instead.
  • Loading branch information
cexbrayat authored and mgechev committed Dec 14, 2018
1 parent 0715beb commit 3684df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular/cli/models/parser.ts
Expand Up @@ -206,7 +206,7 @@ function _assignOption(

if (option.deprecated !== undefined && option.deprecated !== false) {
warnings.push(`Option ${JSON.stringify(option.name)} is deprecated${
typeof option.deprecated == 'string' ? ': ' + option.deprecated : ''}.`);
typeof option.deprecated == 'string' ? ': ' + option.deprecated : '.'}`);
}
}
} else {
Expand Down

0 comments on commit 3684df8

Please sign in to comment.