Skip to content

Commit

Permalink
Merge pull request #3022 from Azure/FixPathSplit
Browse files Browse the repository at this point in the history
Fix bug with generating schemas in windows with path separator.
  • Loading branch information
Xynoclafe authored Apr 1, 2024
2 parents 393ce6d + 6300646 commit 211a04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export async function prepareReadme(readme: string, autoGenConfig: AutoGenConfig

let readmeTag = {} as ReadmeTag;
for (const inputFile of fileSet) {
const pathComponents = inputFile.split(path.sep);
const pathComponents = inputFile.split("/");

if (!autoGenConfig.useNamespaceFromConfig &&
!lowerCaseContains(pathComponents, autoGenConfig.namespace)) {
Expand Down

0 comments on commit 211a04e

Please sign in to comment.