Skip to content

Commit

Permalink
Use more consistent regexes.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Sep 30, 2011
1 parent f23ad1f commit e7125e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vcr/test_frameworks/cucumber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def initialize(main_object)
def tags(*tag_names)
options = tag_names.last.is_a?(::Hash) ? tag_names.pop : {}
tag_names.each do |tag_name|
tag_name = "@#{tag_name}" unless tag_name =~ /^@/
tag_name = "@#{tag_name}" unless tag_name =~ /\A@/
cassette_name = "cucumber_tags/#{tag_name.gsub(/\A@/, '')}"

# It would be nice to use an Around hook here, but
Expand Down

0 comments on commit e7125e7

Please sign in to comment.