Add stripBOM
This commit is contained in:
parent
6e161c83f8
commit
73877a5a35
@ -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) {
|
||||||
|
@ -16,3 +16,7 @@ export function extractComponentInlineTemplate(contents: string): string {
|
|||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function stripBOM(contents: string): string {
|
||||||
|
return contents.trim();
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user