This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
2020-11-01 22:46:04 +00:00

17 lines
285 B
JavaScript

'use strict';
/**
* @param {import('postcss').AtRule} atRule
* @returns {number}
*/
module.exports = function (atRule) {
// Initial 1 is for the `@`
let index = 1 + atRule.name.length;
if (atRule.raws.afterName) {
index += atRule.raws.afterName.length;
}
return index;
};