fix(interpolateName): don't interpolated `hashType` without `hash` or… · webpack/loader-utils@3528fd9

Original file line numberDiff line numberDiff line change

@@ -91,7 +91,7 @@ function interpolateName(loaderContext, name, options) {

9191

// `hash` and `contenthash` are same in `loader-utils` context

9292

// let's keep `hash` for backward compatibility

9393

.replace(

94-

/\[(?:([^:\]]+):)?(?:hash||contenthash)(?::([a-z]+\d*))?(?::(\d+))?\]/gi,

94+

/\[(?:([^:\]]+):)?(?:hash|contenthash)(?::([a-z]+\d*))?(?::(\d+))?\]/gi,

9595

(all, hashType, digestType, maxLength) =>

9696

getHashDigest(content, hashType, digestType, parseInt(maxLength, 10))

9797

)