Skip to content

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

{
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