aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-10-20 15:00:14 +0900
committerGitHub <noreply@github.com>2018-10-20 15:00:14 +0900
commit6d37c6c41a808d0f52b110d9bc1c71af8201900e (patch)
treea44fae3e01522c034e8a07654b9d4fff74003e06 /railties
parent15904ad18c3fc25c7afc71a6891d240e75e6c85c (diff)
parent0f7655c32565fe263c2401c98573b4cce49ecb4f (diff)
downloadrails-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
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/app/javascript/channels/index.js4
1 files changed, 2 insertions, 2 deletions
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)