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
This commit is contained in:
Marko Kaznovac
2022-02-17 17:04:33 +01:00
committed by GitHub
parent ff11f17875
commit 72d18fe640
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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