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 b048e70 commit 13ed830Copy full SHA for 13ed830
core/lib/style_modifier_hunter.js
@@ -2,6 +2,13 @@
2
3
var style_modifier_hunter = function () {
4
5
+ /**
6
+ * Modifies a partial based on the pattern supplied
7
+ *
8
+ * @param pattern {object} the pattern to extend
9
+ * @param partial {string} class name
10
+ * @param patternlab {object} the patternlab instance
11
+ */
12
function consumestylemodifier(pattern, partial, patternlab) {
13
//extract the classname from the stylemodifier which comes in the format of :className
14
var styleModifier = partial.match(/:([\w\-_|])+/g) ? partial.match(/:([\w\-_|])+/g)[0].slice(1) : null;
0 commit comments