From eb8bad2a68a2c37921fe91168e5ec86ceeac9c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Dvo=C5=99=C3=A1k?= <150935816+Dvorinka@users.noreply.github.com> Date: Fri, 23 May 2025 10:00:07 +0200 Subject: [PATCH] Add files via upload --- kontakt/contact-scrape.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kontakt/contact-scrape.go b/kontakt/contact-scrape.go index e39ac9f..c467d07 100644 --- a/kontakt/contact-scrape.go +++ b/kontakt/contact-scrape.go @@ -294,8 +294,11 @@ func processContacts(contacts []Contact) *ContactData { data.InternalContacts = []Contact{} for _, contact := range contacts { - // Check for internal contacts (either name contains "Interní" or position starts with "Interní") - if strings.Contains(contact.Name, "Interní") || strings.HasPrefix(contact.Position, "Interní") { + // Case-insensitive check for internal contacts + nameContains := strings.Contains(strings.ToLower(contact.Name), "interní") + positionContains := strings.HasPrefix(strings.ToLower(contact.Position), "interní") + + if nameContains || positionContains { contact.Internal = true data.InternalContacts = append(data.InternalContacts, contact) } else {