UNPKG

stylelint

Version:
12 lines (9 loc) 307 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (decl) { var charsBeforeColon = decl.toString().indexOf(":"); var charsAfterColon = decl.raw("between").length - decl.raw("between").indexOf(":"); return charsBeforeColon + charsAfterColon; };