Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions core/lib/style_modifier_hunter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down