Skip to content

Commit f72bd9a

Browse files
test: windows
1 parent 4554d8b commit f72bd9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/utils/references.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ func (rc *ReferenceClassification) joinURL(relative string) (string, error) {
186186
// joinFilePath joins this file path reference with a relative path using Go's filepath package
187187
func (rc *ReferenceClassification) joinFilePath(relative string) (string, error) {
188188
// If relative path is absolute, return it as-is
189-
if filepath.IsAbs(relative) {
189+
// Check for both OS-specific absolute paths and Unix-style absolute paths (for cross-platform compatibility)
190+
if filepath.IsAbs(relative) || strings.HasPrefix(relative, "/") {
190191
return relative, nil
191192
}
192193

0 commit comments

Comments
 (0)