rake icon indicating copy to clipboard operation
rake copied to clipboard

Preserve match_data in rules

Open fatkodima opened this issue 4 years ago • 1 comments

Closes #141

Example of usage (from the issue):

rule /^members/(?<email>.*)/\d{2}-(?<step>\w+).timestamp$/ do |t|
  email = t.match_data[:email]
  step  = t.match_data[:step]
  # ...
end

cc/ @avdi

fatkodima avatar Dec 23 '20 17:12 fatkodima

Cool!!!

avdi avatar Jan 05 '21 03:01 avdi