Skip to content

Commit

Permalink
Update gen.go
Browse files Browse the repository at this point in the history
  • Loading branch information
loan-mgt authored Nov 5, 2024
1 parent 92fccd8 commit 72572ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ical/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

// Regular expression for splitting title into components
const regexPattern = `(?P<location>.*?)(?P<promo>[1-9][A-Z]{3,})(?P<summary>.*?)(?P<description>(( |n)[A-Z]{3,} .*)|$)`
const regexPattern = `(?P<location>.*?) (?P<promo>[1-9][A-Z]{3,}(?: GR[A-Z])?) (?P<summary>.*?)(?P<description>(( |n)[A-Z]{3,} .*)|$)`

// GenerateICS generates an ICS string from a list of events
func GenerateICS(events []Event, calendarName string) string {
Expand Down

0 comments on commit 72572ee

Please sign in to comment.