We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52cd134 commit 40f4345Copy full SHA for 40f4345
lib/interpolateName.js
@@ -76,7 +76,7 @@ function interpolateName(loaderContext, name, options = {}) {
76
// `hash` and `contenthash` are same in `loader-utils` context
77
// let's keep `hash` for backward compatibility
78
.replace(
79
- /\[(?:([^:\]]+):)?(?:hash|contenthash)(?::([a-z]+\d*))?(?::(\d+))?\]/gi,
+ /\[(?:([^[:\]]+):)?(?:hash|contenthash)(?::([a-z]+\d*))?(?::(\d+))?\]/gi,
80
(all, hashType, digestType, maxLength) =>
81
getHashDigest(content, hashType, digestType, parseInt(maxLength, 10))
82
);
0 commit comments