Skip to content

Commit

Permalink
Update ical lib
Browse files Browse the repository at this point in the history
To one that doesn't panic
  • Loading branch information
brackendawson committed Sep 1, 2024
1 parent c432958 commit 85261d8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/brackendawson/webcal-proxy
go 1.18

require (
github.com/arran4/golang-ical v0.0.0-20220424140932-da9e1dd56623
github.com/arran4/golang-ical v0.3.1
github.com/google/uuid v1.3.0
github.com/sirupsen/logrus v1.8.1
github.com/stretchr/testify v1.7.1
Expand Down
3 changes: 3 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
github.com/arran4/golang-ical v0.0.0-20220424140932-da9e1dd56623 h1:PYxN5NW45CPt/leUVK46EwgtGmJeJ80PKkH0nmurkws=
github.com/arran4/golang-ical v0.0.0-20220424140932-da9e1dd56623/go.mod h1:BSTTrYHuM12oAL8jDdcmPdw02SBThKYWNFHQlvEG6b0=
github.com/arran4/golang-ical v0.3.1 h1:v13B3eQZ9VDHTAvT6M11vVzxYgcYmjyPBE2eAZl3VZk=
github.com/arran4/golang-ical v0.3.1/go.mod h1:LZWxF8ZIu/sjBVUCV0udiVPrQAgq3V0aa0RfbO99Qkk=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
Expand Down
6 changes: 3 additions & 3 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,11 @@ func mergeEvents(events []*ics.VEvent) ([]*ics.VEvent, error) {
}
description := event.GetProperty(ics.ComponentPropertyDescription)
if description != nil {
newDescription += "\\n\\n---\\n"
newDescription += "\n\n---\n"
if summary != nil {
newDescription += summary.Value + "\\n"
newDescription += summary.Value + "\n"
}
newDescription += "\\n"
newDescription += "\n"
newDescription += description.Value
}
if newDescription != "" {
Expand Down

0 comments on commit 85261d8

Please sign in to comment.