Skip to content

Commit 6d63954

Browse files
authored
Fix a mis-escaped regex.
1 parent d22bf26 commit 6d63954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webpack/localization-plugin/src/LocalizationPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export class LocalizationPlugin implements Webpack.Plugin {
195195
assetPath.match(Constants.LOCALE_FILENAME_PLACEHOLDER_REGEX)
196196
) {
197197
// Does this look like an async chunk URL generator?
198-
if (typeof options.chunk.id === 'string' && options.chunk.id.match(/^\" +/)) {
198+
if (typeof options.chunk.id === 'string' && options.chunk.id.match(/^\" \+/)) {
199199
return assetPath.replace(
200200
Constants.LOCALE_FILENAME_PLACEHOLDER_REGEX,
201201
`" + ${Constants.JSONP_PLACEHOLDER} + "`

0 commit comments

Comments
 (0)