From 72d18fe640d92b8379413a18a1462249783b930f Mon Sep 17 00:00:00 2001 From: Marko Kaznovac Date: Thu, 17 Feb 2022 17:04:33 +0100 Subject: [PATCH] simplify regex in the stimulus app bootstrap.js (#1002) * simplify regex in the stimulus app bootstrap.js use character class instead of group capture with an alternation * simplify regex in the stimulus app bootstrap.js for 1.6 * simplify regex in the stimulus app bootstrap.js for 1.0 --- symfony/webpack-encore-bundle/1.0/assets/bootstrap.js | 2 +- symfony/webpack-encore-bundle/1.6/assets/bootstrap.js | 2 +- symfony/webpack-encore-bundle/1.9/assets/bootstrap.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/symfony/webpack-encore-bundle/1.0/assets/bootstrap.js b/symfony/webpack-encore-bundle/1.0/assets/bootstrap.js index 58308a6b..4ab2df64 100644 --- a/symfony/webpack-encore-bundle/1.0/assets/bootstrap.js +++ b/symfony/webpack-encore-bundle/1.0/assets/bootstrap.js @@ -4,7 +4,7 @@ import { startStimulusApp } from '@symfony/stimulus-bridge'; export const app = startStimulusApp(require.context( '@symfony/stimulus-bridge/lazy-controller-loader!./controllers', true, - /\.(j|t)sx?$/ + /\.[jt]sx?$/ )); // register any custom, 3rd party controllers here diff --git a/symfony/webpack-encore-bundle/1.6/assets/bootstrap.js b/symfony/webpack-encore-bundle/1.6/assets/bootstrap.js index 58308a6b..4ab2df64 100644 --- a/symfony/webpack-encore-bundle/1.6/assets/bootstrap.js +++ b/symfony/webpack-encore-bundle/1.6/assets/bootstrap.js @@ -4,7 +4,7 @@ import { startStimulusApp } from '@symfony/stimulus-bridge'; export const app = startStimulusApp(require.context( '@symfony/stimulus-bridge/lazy-controller-loader!./controllers', true, - /\.(j|t)sx?$/ + /\.[jt]sx?$/ )); // register any custom, 3rd party controllers here diff --git a/symfony/webpack-encore-bundle/1.9/assets/bootstrap.js b/symfony/webpack-encore-bundle/1.9/assets/bootstrap.js index 58308a6b..4ab2df64 100644 --- a/symfony/webpack-encore-bundle/1.9/assets/bootstrap.js +++ b/symfony/webpack-encore-bundle/1.9/assets/bootstrap.js @@ -4,7 +4,7 @@ import { startStimulusApp } from '@symfony/stimulus-bridge'; export const app = startStimulusApp(require.context( '@symfony/stimulus-bridge/lazy-controller-loader!./controllers', true, - /\.(j|t)sx?$/ + /\.[jt]sx?$/ )); // register any custom, 3rd party controllers here