lib/percy/capybara/client/user_agent.rb in percy-capybara-3.1.1 vs lib/percy/capybara/client/user_agent.rb in percy-capybara-3.1.2
- old
+ new
@@ -11,10 +11,10 @@
"percy-capybara-loader/#{loader}",
"rails/#{_rails_version}",
"sinatra/#{_sinatra_version}",
"ember-cli-rails/#{_ember_cli_rails_version}",
].reject do |info|
- info =~ %r{\/$} # reject if version is empty
+ info =~ /\/$/ # reject if version is empty
end.join('; ')
end
def _ember_cli_rails_version
return unless defined? EmberCli