aboutsummaryrefslogtreecommitdiff
path: root/internal/extract/extract.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/extract/extract.go')
-rw-r--r--internal/extract/extract.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/extract/extract.go b/internal/extract/extract.go
index f8f98df..8e6c6c5 100644
--- a/internal/extract/extract.go
+++ b/internal/extract/extract.go
@@ -178,14 +178,14 @@ func (e *Extractor) Text(ctx context.Context, path string, size, maxRead int64)
case toolExt[ext] != "":
return e.legacyText(ctx, path, ext, maxRead)
case markupExt[ext]:
- raw, err := readDecoded(path)
+ raw, err := readDecoded(path, maxRead)
if err != nil {
return "", err
}
return stripMarkup(raw), nil
case plainExt[ext]:
- return readDecoded(path)
+ return readDecoded(path, maxRead)
default:
- return sniffText(path)
+ return sniffText(path, maxRead)
}
}