Skip to content

Commit 622958f

Browse files
committed
Enclose in a paran
1 parent ffe6f84 commit 622958f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/rules/file.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { join } = require('path')
22
const { source_path: sourcePath, static_assets_extensions: fileExtensions } = require('../config')
33

44
module.exports = {
5-
test: new RegExp(fileExtensions.join('|'), 'i'),
5+
test: new RegExp(`(${fileExtensions.join('|')})`, 'i'),
66
use: [
77
{
88
loader: 'file-loader',

0 commit comments

Comments
 (0)