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

Add support for partial match in Interpolation patterns #41

Open
danielo515 opened this issue Jan 6, 2023 · 0 comments
Open

Add support for partial match in Interpolation patterns #41

danielo515 opened this issue Jan 6, 2023 · 0 comments

Comments

@danielo515
Copy link

Hello.
Thanks for this family of libraries, really streamline the development of Haxe.
Something that I think may be useful is to support partial matching of interpolation patterns.
Some way to flag that you don't care about the start or end of the rest of the string. For example

switch input {
  case 'Hello, $who...': trace(who);
  default:
}

and for Hello, Danielo Rodriguez it will match Danielo and discard the rest.

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

No branches or pull requests

1 participant