From f196bd9be5de4ca9845c5dc0e30b89ef521e54be Mon Sep 17 00:00:00 2001 From: M09Ic Date: Mon, 12 Jun 2023 10:44:22 +0800 Subject: [PATCH] fix --remove-extension not work --- internal/option.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/option.go b/internal/option.go index 655223a..22e6d43 100644 --- a/internal/option.go +++ b/internal/option.go @@ -479,7 +479,7 @@ func (opt *Option) PrepareRunner() (*Runner, error) { } if opt.RemoveExtensions != "" { - rexts := strings.Split(opt.ExcludeExtensions, ",") + rexts := strings.Split(opt.RemoveExtensions, ",") r.Fns = append(r.Fns, func(s string) string { if ext := parseExtension(s); iutils.StringsContains(rexts, ext) { return strings.TrimSuffix(s, "."+ext)