Skip to content

Commit 2460b9d

Browse files
committed
Prefix in module mode only elements (classes that start on small letter)
1 parent b871592 commit 2460b9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/getLocalIdent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
var loaderUtils = require("loader-utils");
66
module.exports = function getLocalIdent(loaderContext, localIdentName, localName, options) {
7-
if ( /^\-/.test(localName) ) return localName;
7+
if (!( /^[a-z]/.test(localName) )) return localName;
88
var request = loaderContext.options && typeof loaderContext.options.context === "string" ?
99
loaderUtils.stringifyRequest({ context: loaderContext.options.context }, loaderUtils.getRemainingRequest(loaderContext)) :
1010
loaderContext.request;

0 commit comments

Comments
 (0)