forked from sabre-io/vobject
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ren Xie Liu
committed
Sep 7, 2023
1 parent
72c81a9
commit 4ea3342
Showing
2 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,4 +96,31 @@ public function testNotFixUnknownProperty() | |
|
||
$this->assertNotNull($vcard->children()[0]->CONFERENCE->getValue()); | ||
} | ||
|
||
public function testRemoveEmptySpaceAfterColon(): void | ||
{ | ||
$vcard = <<<ICS | ||
BEGIN:VCALENDAR | ||
VERSION:2.0 | ||
PRODID:-//Proton AG//AndroidCalendar 2.11.20//EN | ||
BEGIN:VEVENT | ||
SEQUENCE:0 | ||
ORGANIZER; CN=Plannert:mailto:[email protected] | ||
END:VEVENT | ||
END:VCALENDAR | ||
ICS; | ||
|
||
$vcard = (new MimeDir())->parse($vcard, Reader::OPTION_FIX_UNFOLDING | Reader::OPTION_FORGIVING); | ||
|
||
|
||
$this->assertSame( | ||
0, | ||
$vcard->VEVENT->SEQUENCE->getValue() | ||
); | ||
|
||
$this->assertSame( | ||
'ORGANIZER;CN=Plannert:mailto:[email protected]' . "\r\n", | ||
$vcard->VEVENT->ORGANIZER->serialize() | ||
); | ||
} | ||
} |