summaryrefslogtreecommitdiff
path: root/sheet.go
diff options
context:
space:
mode:
authorJoseph Watson <jtwatson@linux-consulting.us>2022-10-07 00:11:59 -0400
committerGitHub <noreply@github.com>2022-10-07 12:11:59 +0800
commit57051326d06cea02774dc0ace3293906ec5f281e (patch)
tree52d744ebc06abde66102664fa68e13b6b67c9b78 /sheet.go
parent53a495563a2b9acf09ae45eae05d5f33aa242a87 (diff)
This closes #1365, normalize the sheet name (#1366)
Signed-off-by: Joseph Watson <jtwatson@linux-consulting.us>
Diffstat (limited to 'sheet.go')
-rw-r--r--sheet.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/sheet.go b/sheet.go
index 73e7501..6ec9aef 100644
--- a/sheet.go
+++ b/sheet.go
@@ -457,6 +457,7 @@ func (f *File) getSheetXMLPath(sheet string) (string, bool) {
name string
ok bool
)
+ sheet = trimSheetName(sheet)
for sheetName, filePath := range f.sheetMap {
if strings.EqualFold(sheetName, sheet) {
name, ok = filePath, true