Skip to content

Commit

Permalink
Addressed issue #240
Browse files Browse the repository at this point in the history
Not sure why I built the original code the way it was, but it’s now a simplified query without stripping out, or manipulating the path in anyway, the rest of the code that follows after handles the query correctly.

Signed-off-by: quobix <dave@quobix.com>
  • Loading branch information
daveshanley committed Feb 3, 2024
1 parent 72c997f commit 796ec09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index/find_component.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ func (index *SpecIndex) lookupRolodex(uri []string) *Reference {
if len(uri) < 2 {
wholeFile = true
} else {
query = fmt.Sprintf("#/%s", strings.Replace(uri[1], "~1", "./", 1))
query = strings.ReplaceAll(query, "~1", "/")
query = fmt.Sprintf("#/%s", uri[1])
}

// check if there is a component we want to suck in, or if the
Expand Down

0 comments on commit 796ec09

Please sign in to comment.