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

Document @(code) interpolation in regex #3317

Merged
merged 2 commits into from Apr 8, 2020
Merged

Document @(code) interpolation in regex #3317

merged 2 commits into from Apr 8, 2020

Conversation

chloekek
Copy link
Contributor

@chloekek chloekek commented Apr 7, 2020

The problem

$(code) interpolation was documented, but @(code) was not.

Solution provided

Document @(code) interpolation, with an example that uses the keys of a hash and substitutes the corresponding values.

Copy link
Contributor

@JJ JJ left a comment

Choose a reason for hiding this comment

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

Please clarify a bit what it is equivalent to.

@chloekek chloekek requested a review from JJ April 8, 2020 16:15
Copy link
Contributor

@JJ JJ left a comment

Choose a reason for hiding this comment

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

Great! Thanks!

@JJ JJ merged commit ae55d38 into master Apr 8, 2020
@chloekek
Copy link
Contributor Author

chloekek commented Apr 8, 2020

Btw, usually want to squash fixup! commits before merging. ;)

With git rebase -i --autosquash.

@chloekek chloekek deleted the @-interp-regex branch April 8, 2020 16:42
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.

None yet

2 participants