From 3684df8aca5dfb9d7cfa813161df6de5596598df Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Fri, 14 Dec 2018 14:59:46 +0100 Subject: [PATCH] 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. --- packages/angular/cli/models/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular/cli/models/parser.ts b/packages/angular/cli/models/parser.ts index 8a9a3c3b8b..8631a9e999 100644 --- a/packages/angular/cli/models/parser.ts +++ b/packages/angular/cli/models/parser.ts @@ -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 {