Skip to content

Remove firstMatch and wholeMatch from String #285

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

Closed
wants to merge 1 commit into from

Conversation

natecook1000
Copy link
Member

These methods are available directly on Regex with the caller/callee swapped, having them on String confuses the intended user-facing Algorithms APIs.

These methods are available directly on Regex with the caller/callee swapped,
having them on String confuses the intended user-facing Algorithms APIs.
@natecook1000 natecook1000 requested review from milseman and rxwei April 15, 2022 13:09
func wholeMatch<R: RegexComponent>(@RegexComponentBuilder _ content: () -> R) -> Regex<R.RegexOutput>.Match? {
wholeMatch(of: content())
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Should these be API? @itingliu

@milseman
Copy link
Member

I believe this has been subsumed by #286

@milseman milseman closed this Apr 22, 2022
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