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

Adding colon to interpolated regex so they can be used in concats #700

Merged
merged 1 commit into from
Jan 5, 2015

Conversation

lamdor
Copy link
Contributor

@lamdor lamdor commented Dec 20, 2014

Fixes #696

I don't think the regex is sustainable or at the very least, we need to come up with a list of valid characters that can be used within an interpolation. Since we now have concat, basically the user can input any string values which we continually come up against this regex.

So for now, I've just added the colon to to regex valid chars to fix my own case.

@lamdor lamdor changed the title Adding comma to interpolated regex so they can be used in concats Adding colon to interpolated regex so they can be used in concats Dec 21, 2014
@lamdor lamdor force-pushed the fix-interpolated-func-with-colon branch from b83d769 to e970eea Compare December 21, 2014 20:13
armon added a commit that referenced this pull request Jan 5, 2015
Adding colon to interpolated regex so they can be used in concats
@armon armon merged commit 69ca9ef into hashicorp:master Jan 5, 2015
@armon
Copy link
Member

armon commented Jan 5, 2015

Agreed. That "language" has evolved pretty far. I think eventually it will just need a lexer + BNF to properly parse into an AST instead of the growing complexity of the regex / bespoke parser evaluator.

@lamdor lamdor deleted the fix-interpolated-func-with-colon branch April 20, 2015 19:48
@ghost
Copy link

ghost commented May 3, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Interpolated function with an colon in any literal string arg fails
2 participants