Update !url.startsWith condition in file.ts

Signed-off-by: lancelot <sudhanshusah2001@gmail.com>
This commit is contained in:
lancelot
2021-04-09 12:22:14 +05:30
parent 89f5ecf0ef
commit b109375902
@@ -21,7 +21,7 @@ import { PreparerBase, PreparerOptions } from './types';
export class FilePreparer implements PreparerBase {
async prepare({ url, workspacePath }: PreparerOptions) {
if (!url.startsWith('file:///')) {
if (!url.startsWith('file://')) {
throw new InputError(`Wrong location protocol, should be 'file', ${url}`);
}