From b52eb4833402227cba456cea63d423d3366b713f Mon Sep 17 00:00:00 2001 From: Deepak Singh Date: Sun, 22 Mar 2026 09:35:44 +0000 Subject: [PATCH] fix: standardize SSA Auditorium locations (closes #142) --- parser/cometCalendarParser.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/parser/cometCalendarParser.go b/parser/cometCalendarParser.go index ebb8bcc..5ce0345 100644 --- a/parser/cometCalendarParser.go +++ b/parser/cometCalendarParser.go @@ -50,6 +50,12 @@ func ParseCometCalendar(inDir string, outDir string) { // Get building and room location := utils.ConvertFromInterface[string](event.Location) + // Standardize SSA Auditorium locations + if location != nil && (strings.Contains(*location, "SSA 13.330") || strings.Contains(*location, "SSA Auditorium")) { + standardized := "SSA Auditorium" + location = &standardized + } + // Regexp to match building abbreviations and room numbers buildingRegexp := regexp.MustCompile(`[A-Z]{2,4}`) roomRegexp := regexp.MustCompile(`([0-9]{1,2}\.[0-9]{3})([A-Z])?`)