~kaction/fix-links

bb9df800d764d77c23a4fed0374f8bae45afd505 — Dmitry Bogatov 5 months ago c2553a6
Work-around fs.Stat beeing too picky
1 files changed, 1 insertions(+), 1 deletions(-)

M main.go
M main.go => main.go +1 -1
@@ 25,7 25,7 @@ func fixNode(s fs.FS, n *html.Node, fixed *bool) {
			break
		}

		info, err := fs.Stat(s, a.Val)
		info, err := fs.Stat(s, strings.TrimSuffix(a.Val, "/"))
		if err != nil {
			break
		}