UNPKG

stylelint

Version:
7 lines (5 loc) 224 B
export default function (decl) { const charsBeforeColon = decl.toString().indexOf(":") const charsAfterColon = decl.raw("between").length - decl.raw("between").indexOf(":") return charsBeforeColon + charsAfterColon }