mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 10:33:43 +08:00
fix(@angular/cli): remove redundant period in deprecation warning
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.
This commit is contained in:
parent
0715beb65c
commit
3684df8aca
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user