File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change 11package ics
22
33import (
4- "github.com/stretchr/testify/assert"
54 "io"
65 "io/ioutil"
76 "os"
@@ -11,6 +10,8 @@ import (
1110 "testing"
1211 "time"
1312 "unicode/utf8"
13+
14+ "github.com/stretchr/testify/assert"
1415)
1516
1617func TestTimeParsing (t * testing.T ) {
@@ -315,6 +316,31 @@ DESCRIPTION:blablablablablablablablablablablablablablablabltesttesttest
315316CLASS:PUBLIC
316317END:VEVENT
317318END:VCALENDAR
319+ ` ,
320+ },
321+ {
322+ name : "test semicolon in attendee property parameter" ,
323+ input : `BEGIN:VCALENDAR
324+ VERSION:2.0
325+ X-CUSTOM-FIELD:test
326+ PRODID:-//arran4//Golang ICS Library
327+ DESCRIPTION:test
328+ BEGIN:VEVENT
329+ ATTENDEE;CN=Test\;User:mailto:user@example.com
330+ CLASS:PUBLIC
331+ END:VEVENT
332+ END:VCALENDAR
333+ ` ,
334+ output : `BEGIN:VCALENDAR
335+ VERSION:2.0
336+ X-CUSTOM-FIELD:test
337+ PRODID:-//arran4//Golang ICS Library
338+ DESCRIPTION:test
339+ BEGIN:VEVENT
340+ ATTENDEE;CN=Test\;User:mailto:user@example.com
341+ CLASS:PUBLIC
342+ END:VEVENT
343+ END:VCALENDAR
318344` ,
319345 },
320346 }
You can’t perform that action at this time.
0 commit comments