Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions parser/cometCalendarParser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be standardized as "SSA 13.330".

Copy link
Copy Markdown
Contributor

@KBui4 KBui4 Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the location really needed to be parsed to SSA Auditorium, then standardize after parsing the building and room, not before like here.

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])?`)
Expand Down
Loading