diff --git a/core/lib/style_modifier_hunter.js b/core/lib/style_modifier_hunter.js index 8c0b7413f..675142bb7 100644 --- a/core/lib/style_modifier_hunter.js +++ b/core/lib/style_modifier_hunter.js @@ -2,6 +2,13 @@ var style_modifier_hunter = function () { + /** + * Modifies a partial based on the pattern supplied + * + * @param pattern {object} the pattern to extend + * @param partial {string} class name + * @param patternlab {object} the patternlab instance + */ function consumestylemodifier(pattern, partial, patternlab) { //extract the classname from the stylemodifier which comes in the format of :className var styleModifier = partial.match(/:([\w\-_|])+/g) ? partial.match(/:([\w\-_|])+/g)[0].slice(1) : null;