We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 387cbcb + 81b97c6 commit ca97ffbCopy full SHA for ca97ffb
lib/getLocalIdent.js
@@ -11,5 +11,5 @@ module.exports = function getLocalIdent(loaderContext, localIdentName, localName
11
options.context = loaderContext.options && typeof loaderContext.options.context === "string" ? loaderContext.options.context : loaderContext.context;
12
localIdentName = localIdentName.replace(/\[local\]/gi, localName);
13
var hash = loaderUtils.interpolateName(loaderContext, localIdentName, options);
14
- return hash.replace(/[^a-zA-Z0-9\-_]/g, "-").replace(/^([^a-zA-Z_])/, "_$1");
+ return hash.replace(new RegExp("[^a-zA-Z0-9\\-_\u00A0-\uFFFF]", "g"), "-").replace(/^([^a-zA-Z_])/, "_$1");
15
};
0 commit comments