mirror of
https://gh.wpcy.net/https://github.com/djav1985/v-wordpress-plugin-updater.git
synced 2026-04-28 08:02:16 +08:00
15 lines
338 B
JavaScript
15 lines
338 B
JavaScript
import isSharedLineComment from './isSharedLineComment.mjs';
|
|
|
|
/**
|
|
* @param {import('postcss').Node} node
|
|
* @returns {boolean}
|
|
*/
|
|
export default function isAfterComment(node) {
|
|
const previousNode = node.prev();
|
|
|
|
if (!previousNode || previousNode.type !== 'comment') {
|
|
return false;
|
|
}
|
|
|
|
return !isSharedLineComment(previousNode);
|
|
}
|