rails / jsbundling-rails

Bundle and transpile JavaScript in Rails with esbuild, rollup.js, or Webpack.
MIT License
831 stars 143 forks source link

dev: Use an affirmative conditional and use --exact to avoid regex in conditional #174

Closed olleolleolle closed 8 months ago

olleolleolle commented 11 months ago

...and avoid regex in match.

Example:

$ gem list ails

*** LOCAL GEMS ***

breadcrumbs_on_rails (4.1.0)
cssbundling-rails (1.3.3, 1.3.2, 1.2.0, 1.1.2)
dotenv-rails (2.8.1)
factory_bot_rails (6.2.0)
mjml-rails (4.9.0, 4.8.0)
omniauth-rails_csrf_protection (1.0.1)
premailer-rails (1.12.0)
pry-rails (0.3.9)
rails (7.1.0.beta1, 7.0.8, 7.0.7.2, 7.0.7, 7.0.6, 7.0.5.1, 7.0.5, 7.0.4.3, 7.0.3.1, 6.1.7.3)
rails-controller-testing (1.0.5)
rails-dom-testing (2.2.0, 2.1.1, 2.0.3)
rails-html-sanitizer (1.6.0, 1.5.0)
rails_autolink (1.1.8)
rspec-rails (6.0.3, 6.0.2, 6.0.1)
rubocop-rails (2.21.2, 2.21.1, 2.21.0, 2.20.2, 2.20.0, 2.19.1, 2.19.0, 2.18.0)
sass-rails (6.0.0)
sassc-rails (2.1.2)
sprockets-rails (3.4.2)
turbo-rails (1.0.1)
$ gem list --exact ails

*** LOCAL GEMS ***