'use strict';

function Helpers() {
}

Helpers.prototype = {
    getClassesFromSelector: function (selector) {
        if (!selector) {
            return [];
        }
        var classRegEx = /[_a-zA-Z\*][_a-zA-Z0-9-]*/g;
        return selector.match(classRegEx);
    },
    getSelectorLength: function (selector) {
        var classes = this.getClassesFromSelector(selector);
        return classes ? classes.length : 0;
    }
};

module.exports = Helpers;

'use strict';

function Helpers() {
}

Helpers.prototype = {
    getClassesFromSelector: function (selector) {
        if (!selector) {
            return [];
        }
        var classRegEx = /[_a-zA-Z][_a-zA-Z0-9-]*/g;
        return selector.match(classRegEx);
    },
    getSelectorLength: function (selector) {
        var classes = this.getClassesFromSelector(selector);
        return classes ? classes.length : 0;
    }
};

module.exports = Helpers;

Revert "support * selectors", it appears this bug was already fixed but not released
Revert "support * selectors", it appears this bug was already fixed but not released
