From 4b64b26c52932a51ca97a2bb6bf372a07020e52b Mon Sep 17 00:00:00 2001 From: xuri Date: Sun, 13 Feb 2022 00:06:30 +0800 Subject: Ref: #660, #764, #1093, #1112, #1133 This improve number format support - Introduced NFP (number format parser) dependencies module - Initialize custom dates and times number format support - Dependencies module upgraded --- comment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'comment.go') diff --git a/comment.go b/comment.go index c0dc33b..f3b3642 100644 --- a/comment.go +++ b/comment.go @@ -256,7 +256,7 @@ func (f *File) addComment(commentsXML, cell string, formatSet *formatComment) { if comments == nil { comments = &xlsxComments{Authors: xlsxAuthor{Author: []string{formatSet.Author}}} } - if inStrSlice(comments.Authors.Author, formatSet.Author) == -1 { + if inStrSlice(comments.Authors.Author, formatSet.Author, true) == -1 { comments.Authors.Author = append(comments.Authors.Author, formatSet.Author) authorID = len(comments.Authors.Author) - 1 } -- cgit v1.2.1