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 61a09b1 commit b0dbd5fCopy full SHA for b0dbd5f
index.js
@@ -41,6 +41,6 @@ module.exports = function createGenerator(pattern, options) {
41
var genericName = interpolateName(loaderContext, name, loaderOptions);
42
return genericName
43
.replace(new RegExp('[^a-zA-Z0-9\\-_\u00A0-\uFFFF]', 'g'), '-')
44
- .replace(/^([^a-zA-Z_])/, '_$1');
+ .replace(/^((-?[0-9])|--)/, "_$1");
45
};
46
0 commit comments