MCPcopy Create free account
hub / github.com/buggregator/server / resolveURL

Function resolveURL

modules/sentry/sourcemap.go:123–133  ·  view source on GitHub ↗
(base, ref string)

Source from the content-addressed store, hash-verified

121}
122
123func resolveURL(base, ref string) string {
124 b, err := url.Parse(base)
125 if err != nil {
126 return ref
127 }
128 r, err := url.Parse(ref)
129 if err != nil {
130 return ref
131 }
132 return b.ResolveReference(r).String()
133}
134
135// originalPosition translates a generated 1-based line and 0-based column into
136// the original source: index into Sources/SourcesContent and 0-based line.

Callers 1

extractSourceMapFunction · 0.85

Calls 2

ParseMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected