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.
2 parents 992f117 + b0dbd5f commit 0e8528eCopy full SHA for 0e8528e
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