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:
cexbrayat 2018-12-14 14:59:46 +01:00 committed by Minko Gechev
parent 0715beb65c
commit 3684df8aca

View File

@ -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 {