diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-10-20 15:00:14 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-20 15:00:14 +0900 |
commit | 6d37c6c41a808d0f52b110d9bc1c71af8201900e (patch) | |
tree | a44fae3e01522c034e8a07654b9d4fff74003e06 | |
parent | 15904ad18c3fc25c7afc71a6891d240e75e6c85c (diff) | |
parent | 0f7655c32565fe263c2401c98573b4cce49ecb4f (diff) | |
download | rails-6d37c6c41a808d0f52b110d9bc1c71af8201900e.tar.gz rails-6d37c6c41a808d0f52b110d9bc1c71af8201900e.tar.bz2 rails-6d37c6c41a808d0f52b110d9bc1c71af8201900e.zip |
Merge pull request #34260 from frodsan/fix/remove-unnecessary-escape-char
Remove unnecessary escape character
-rw-r--r-- | actioncable/lib/rails/generators/channel/templates/javascript/index.js.tt | 4 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/app/javascript/channels/index.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/actioncable/lib/rails/generators/channel/templates/javascript/index.js.tt b/actioncable/lib/rails/generators/channel/templates/javascript/index.js.tt index 5da1ce2dce..0cfcf74919 100644 --- a/actioncable/lib/rails/generators/channel/templates/javascript/index.js.tt +++ b/actioncable/lib/rails/generators/channel/templates/javascript/index.js.tt @@ -1,5 +1,5 @@ -// Load all the channels within this directory and all subdirectories. +// Load all the channels within this directory and all subdirectories. // Channel files must be named *_channel.js. -const channels = require.context('.', true, /\_channel\.js$/) +const channels = require.context('.', true, /_channel\.js$/) channels.keys().forEach(channels) diff --git a/railties/lib/rails/generators/rails/app/templates/app/javascript/channels/index.js b/railties/lib/rails/generators/rails/app/templates/app/javascript/channels/index.js index 5da1ce2dce..0cfcf74919 100644 --- a/railties/lib/rails/generators/rails/app/templates/app/javascript/channels/index.js +++ b/railties/lib/rails/generators/rails/app/templates/app/javascript/channels/index.js @@ -1,5 +1,5 @@ -// Load all the channels within this directory and all subdirectories. +// Load all the channels within this directory and all subdirectories. // Channel files must be named *_channel.js. -const channels = require.context('.', true, /\_channel\.js$/) +const channels = require.context('.', true, /_channel\.js$/) channels.keys().forEach(channels) |