Skip to content

Make Fn::Sub regex match non-greedy#11

Open
dklawson wants to merge 2 commits intopuresec:masterfrom
dklawson:master
Open

Make Fn::Sub regex match non-greedy#11
dklawson wants to merge 2 commits intopuresec:masterfrom
dklawson:master

Conversation

@dklawson
Copy link
Copy Markdown

This fixes an issue when the string for Fn::Sub contains multiple variable references (i.e. "https://${BucketName}.s3.amazonaws.com/${QSS3KeyPrefix}rest/of/path")

@odedniv
Copy link
Copy Markdown
Contributor

odedniv commented Mar 16, 2020

I'm no longer a maintainer here, but you might want to add a test for this (or change the existing test), and then you can also easily verify you can reproduce the issue before your fix.

@dklawson
Copy link
Copy Markdown
Author

Sorry, missed that. Test added.

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