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 escapable colons in custom keys #151

Merged
merged 3 commits into from
Nov 18, 2020
Merged

Add escapable colons in custom keys #151

merged 3 commits into from
Nov 18, 2020

Conversation

Jamesclark32
Copy link
Contributor

Allows for colon characters as part of the custom key syntax by backslash escaping them.

e.g. __custom:ns\:parameter:1 will resolve to a custom key of ns:parameter

I really appreciate how easy this package is making it to build XML for interaction with a partner's SOAP interface Unfortunately, I have encountered a scenario requiring colon-delimited custom keys, which isn't possible (that I know of) using the current explode() approach. This modification would allow more flexibility in the custom key name.

Thank you so much for this and so many other packages, and for considering this PR!

@freekmurze freekmurze merged commit 257f0e6 into spatie:master Nov 18, 2020
@freekmurze
Copy link
Member

Thanks!

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