Skip to content

Commit c95fafc

Browse files
Fix incorrect check for protocol (#1088)
1 parent 8814919 commit c95fafc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ async function generateSchema(pathToSpec) {
114114
const filename = pathToSpec.replace(EXT_RE, ".ts");
115115
const originalOutputFilePath = outputFilePath;
116116
outputFilePath = new URL(filename, originalOutputFilePath);
117-
if (outputFilePath.protocol !== 'file') {
117+
if (outputFilePath.protocol !== 'file:') {
118118
outputFilePath = new URL(outputFilePath.host.replace(EXT_RE, ".ts"), originalOutputFilePath);
119119
}
120120
}

0 commit comments

Comments
 (0)