We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20a7316 commit 55c8cf7Copy full SHA for 55c8cf7
index.js
@@ -39,6 +39,8 @@ module.exports = function createGenerator(pattern, options) {
39
};
40
41
var genericName = interpolateName(loaderContext, name, loaderOptions);
42
- return genericName;
+ return genericName
43
+ .replace(new RegExp('[^a-zA-Z0-9\\-_\u00A0-\uFFFF]', 'g'), '-')
44
+ .replace(/^([^a-zA-Z_])/, '_$1');
45
46
0 commit comments