Update !url.startsWith condition in file.ts
Signed-off-by: lancelot <sudhanshusah2001@gmail.com>
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user