Skip to content

Commit 72d18fe

Browse files
authored
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
1 parent ff11f17 commit 72d18fe

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

symfony/webpack-encore-bundle/1.0/assets/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { startStimulusApp } from '@symfony/stimulus-bridge';
44
export const app = startStimulusApp(require.context(
55
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
66
true,
7-
/\.(j|t)sx?$/
7+
/\.[jt]sx?$/
88
));
99

1010
// register any custom, 3rd party controllers here

symfony/webpack-encore-bundle/1.6/assets/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { startStimulusApp } from '@symfony/stimulus-bridge';
44
export const app = startStimulusApp(require.context(
55
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
66
true,
7-
/\.(j|t)sx?$/
7+
/\.[jt]sx?$/
88
));
99

1010
// register any custom, 3rd party controllers here

symfony/webpack-encore-bundle/1.9/assets/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { startStimulusApp } from '@symfony/stimulus-bridge';
44
export const app = startStimulusApp(require.context(
55
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
66
true,
7-
/\.(j|t)sx?$/
7+
/\.[jt]sx?$/
88
));
99

1010
// register any custom, 3rd party controllers here

0 commit comments

Comments
 (0)