We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b871592 commit 2460b9dCopy full SHA for 2460b9d
lib/getLocalIdent.js
@@ -4,7 +4,7 @@
4
*/
5
var loaderUtils = require("loader-utils");
6
module.exports = function getLocalIdent(loaderContext, localIdentName, localName, options) {
7
- if ( /^\-/.test(localName) ) return localName;
+ if (!( /^[a-z]/.test(localName) )) return localName;
8
var request = loaderContext.options && typeof loaderContext.options.context === "string" ?
9
loaderUtils.stringifyRequest({ context: loaderContext.options.context }, loaderUtils.getRemainingRequest(loaderContext)) :
10
loaderContext.request;
0 commit comments