Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Commit efcb001

Browse files
authored
fix windows path case sensitivity (#2831)
1 parent 4a0b4d7 commit efcb001

9 files changed

Lines changed: 14 additions & 12 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "openapi-workspaces",
33
"license": "MIT",
44
"private": true,
5-
"version": "0.54.12",
5+
"version": "0.54.13",
66
"workspaces": [
77
"projects/json-pointer-helpers",
88
"projects/openapi-io",

projects/fastify-capture/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@useoptic/fastify-capture",
33
"license": "MIT",
44
"packageManager": "yarn@4.1.1",
5-
"version": "0.54.12",
5+
"version": "0.54.13",
66
"main": "build/index.js",
77
"types": "build/index.d.ts",
88
"files": [

projects/json-pointer-helpers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@useoptic/json-pointer-helpers",
33
"license": "MIT",
44
"packageManager": "yarn@4.1.1",
5-
"version": "0.54.12",
5+
"version": "0.54.13",
66
"main": "build/index.js",
77
"types": "build/index.d.ts",
88
"files": [

projects/openapi-io/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@useoptic/openapi-io",
33
"license": "MIT",
44
"packageManager": "yarn@4.1.1",
5-
"version": "0.54.12",
5+
"version": "0.54.13",
66
"main": "build/index.js",
77
"types": "build/index.d.ts",
88
"files": [

projects/openapi-utilities/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@useoptic/openapi-utilities",
33
"license": "MIT",
44
"packageManager": "yarn@4.1.1",
5-
"version": "0.54.12",
5+
"version": "0.54.13",
66
"main": "build/index.js",
77
"types": "build/index.d.ts",
88
"files": [

projects/optic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@useoptic/optic",
33
"license": "MIT",
44
"packageManager": "yarn@4.1.1",
5-
"version": "0.54.12",
5+
"version": "0.54.13",
66
"main": "build/index.js",
77
"types": "build/index.d.ts",
88
"files": [

projects/optic/src/utils/spec-loaders.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ type SpecFromInput =
9292
url: string;
9393
};
9494

95+
function isWindowsDrivePath(raw: string) {
96+
// matches windows drive paths (C:\... or d:\...)
97+
return /^[a-zA-Z]:\\/.test(raw);
98+
}
99+
95100
export function parseOpticRef(raw?: string | null): SpecFromInput {
96101
raw = raw ?? 'null:';
97102
let isUrl = false;
@@ -118,10 +123,7 @@ export function parseOpticRef(raw?: string | null): SpecFromInput {
118123
apiId: maybeCloudMatch.groups.apiId,
119124
tag: maybeCloudMatch.groups.tag,
120125
};
121-
} else if (
122-
raw.includes(':') &&
123-
!(raw.startsWith('C:') || raw.startsWith('D:'))
124-
) {
126+
} else if (raw.includes(':') && !isWindowsDrivePath(raw)) {
125127
const index = raw.indexOf(':');
126128
const rev = raw.substring(0, index);
127129
const name = raw.substring(index + 1);

projects/rulesets-base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@useoptic/rulesets-base",
33
"license": "MIT",
44
"packageManager": "yarn@4.1.1",
5-
"version": "0.54.12",
5+
"version": "0.54.13",
66
"main": "build/index.js",
77
"types": "build/index.d.ts",
88
"files": [

projects/standard-rulesets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@useoptic/standard-rulesets",
33
"license": "MIT",
44
"packageManager": "yarn@4.1.1",
5-
"version": "0.54.12",
5+
"version": "0.54.13",
66
"main": "build/index.js",
77
"types": "build/index.d.ts",
88
"files": [

0 commit comments

Comments
 (0)