Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed VCardHelper.cs #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fixed VCardHelper.cs #18

wants to merge 2 commits into from

Conversation

tmr0861
Copy link

@tmr0861 tmr0861 commented Oct 5, 2019

Regex.Split didn't split the cards. I updated the regex pattern to match each VCARD in the contents and get the matches. There may be a better way to do this, but this works and is quite fast.

Fixed SplitCards to return multiple cards
@BlyZeDev
Copy link

BlyZeDev commented Jul 6, 2022

Instead of an array you could return a Tuple

@@ -6,7 +6,16 @@ public static class VCardHelper
{
public static string[] SplitCards(string contents)
Copy link

Choose a reason for hiding this comment

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

public static (string, string) SplitCards(string contents)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants