Add stripBOM

This commit is contained in:
Kim Biesbjerg 2019-07-08 15:13:07 +02:00
parent 6e161c83f8
commit 73877a5a35
2 changed files with 5 additions and 1 deletions

View File

@ -103,7 +103,7 @@ const extractTask = new ExtractTask(cli.input, cli.output, {
// Parsers // Parsers
const parsers: ParserInterface[] = [ const parsers: ParserInterface[] = [
new PipeParser(), new PipeParser(),
new DirectiveParser() new DirectiveParser(),
new ServiceParser() new ServiceParser()
]; ];
if (cli.marker) { if (cli.marker) {

View File

@ -16,3 +16,7 @@ export function extractComponentInlineTemplate(contents: string): string {
} }
return ''; return '';
} }
export function stripBOM(contents: string): string {
return contents.trim();
}