Skip to content

Commit

Permalink
Ensure URL paths don't use Windows backslashes
Browse files Browse the repository at this point in the history
  • Loading branch information
felixjung authored and daveshanley committed Oct 29, 2024
1 parent 87abac5 commit c8c2d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datamodel/low/extraction_functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func LocateRefNodeWithContext(ctx context.Context, root *yaml.Node, idx *index.S
p = u.Path
}

u.Path = filepath.Join(p, explodedRefValue[0])
u.Path = utils.ReplaceWindowsDriveWithLinuxPath(filepath.Join(p, explodedRefValue[0]))
rv = fmt.Sprintf("%s#%s", u.String(), explodedRefValue[1])
}
}
Expand Down

0 comments on commit c8c2d35

Please sign in to comment.