mirror of
https://github.com/thangisme/notes.git
synced 2026-07-27 03:13:51 -04:00
Initial commit
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
/* @flow */
|
||||
"use strict"
|
||||
module.exports = function (atRule/*: postcss$atRule*/)/*: number*/ {
|
||||
// Initial 1 is for the `@`
|
||||
let index = 1 + atRule.name.length
|
||||
if (atRule.raws.afterName) {
|
||||
index += atRule.raws.afterName.length
|
||||
}
|
||||
return index
|
||||
}
|
||||
Reference in New Issue
Block a user