Fix markdown chunking in check.go by removing extra newline and comment out debug logging in fsurls.go for cleaner output during URL collection.

This commit is contained in:
Luke Hagar
2025-09-13 01:59:11 +00:00
parent 211fafe931
commit 04fb6f150a
2 changed files with 4 additions and 13 deletions

View File

@@ -407,7 +407,7 @@ func chunkMarkdownByURL(body string) []string {
for i < len(entryLines) && !strings.HasPrefix(entryLines[i], "- ") {
i++
}
block := strings.Join(entryLines[start:i], "\n") + "\n\n"
block := strings.Join(entryLines[start:i], "\n") + "\n"
entries = append(entries, entry{text: block, length: len(block)})
}

View File

@@ -89,9 +89,9 @@ func CollectURLs(rootPath string, globs []string, respectGitignore bool) (map[st
// Walk the filesystem
walkFn := func(path string, d os.DirEntry, err error) error {
if isDebugEnv() {
fmt.Printf("::debug:: Walking path: %s\n", path)
}
// if isDebugEnv() {
// fmt.Printf("::debug:: Walking path: %s\n", path)
// }
if err != nil {
return nil
@@ -125,11 +125,6 @@ func CollectURLs(rootPath string, globs []string, respectGitignore bool) (map[st
return nil
}
// Debug: announce file being parsed; GitHub shows ::debug only in debug runs
if isDebugEnv() {
fmt.Printf("::debug:: Scanned File: %s\n", rel)
}
f, ferr := os.Open(path)
if ferr != nil {
return nil
@@ -476,10 +471,6 @@ func trimDelimiters(s string) string {
return s
}
func extractCandidates(rel string, content string) []string {
return nil
}
// matchCandidate holds a URL and its byte offset within the content
type matchCandidate struct {
URL string