aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/app_base.rb
diff options
context:
space:
mode:
authorRichard Schneeman <richard.schneeman+no-recruiters@gmail.com>2018-07-28 21:58:36 -0500
committerGitHub <noreply@github.com>2018-07-28 21:58:36 -0500
commitf10acfa7b64ac93cbbfc97e3a92d644960198764 (patch)
tree244ed8c81174abd2ae651f93781425f518688be9 /railties/lib/rails/generators/app_base.rb
parent8741052ba25722283ea057f6f022f16b1931ce3e (diff)
parent27c6c071165342c770ed9c697024aa101dad4049 (diff)
downloadrails-f10acfa7b64ac93cbbfc97e3a92d644960198764.tar.gz
rails-f10acfa7b64ac93cbbfc97e3a92d644960198764.tar.bz2
rails-f10acfa7b64ac93cbbfc97e3a92d644960198764.zip
Merge pull request #32695 from bdewater/enable-regex-cops
Enable regex cops
Diffstat (limited to 'railties/lib/rails/generators/app_base.rb')
-rw-r--r--railties/lib/rails/generators/app_base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb
index f51542f3ec..985e9ab263 100644
--- a/railties/lib/rails/generators/app_base.rb
+++ b/railties/lib/rails/generators/app_base.rb
@@ -376,7 +376,7 @@ module Rails
comment = "See https://github.com/rails/execjs#readme for more supported runtimes"
if defined?(JRUBY_VERSION)
GemfileEntry.version "therubyrhino", nil, comment
- elsif RUBY_PLATFORM =~ /mingw|mswin/
+ elsif RUBY_PLATFORM.match?(/mingw|mswin/)
GemfileEntry.version "duktape", nil, comment
else
GemfileEntry.new "mini_racer", nil, comment, { platforms: :ruby }, true