Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@DarwinAwardWinner
Copy link
Contributor

@DarwinAwardWinner DarwinAwardWinner commented May 14, 2021

Here is my implementation of #27. You can name any argument to capture, and the result will be a named group with that name. Giving multiple arguments with different names is an error.

Backward-compatibility is maintained, though this adds an edge case that "name" cannot be used as the name of a capture group (except by doing name = "name").

@DarwinAwardWinner DarwinAwardWinner changed the title Capture named arg Allow capture group naming via named argument May 14, 2021
@codecov-commenter
Copy link

codecov-commenter commented May 14, 2021

Codecov Report

Merging #69 (db0554a) into master (7d174c0) will decrease coverage by 3.76%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #69      +/-   ##
==========================================
- Coverage   74.83%   71.06%   -3.77%     
==========================================
  Files          14       14              
  Lines         151      159       +8     
==========================================
  Hits          113      113              
- Misses         38       46       +8     
Impacted Files Coverage Δ
R/capture.R 7.69% <0.00%> (-12.31%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d174c0...db0554a. Read the comment docs.

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