UNPKG

ant-design-x-vue

Version:

Craft AI-driven interfaces effortlessly

16 lines (15 loc) 534 B
import { lintWarning as l } from "./utils.mjs"; function s(n) { var r; return (((r = n.match(/:not\(([^)]*)\)/)) == null ? void 0 : r[1]) || "").split(/(\[[^[]*])|(?=[.#])/).filter((o) => o).length > 1; } function a(n) { return n.parentSelectors.reduce((e, t) => e ? t.includes("&") ? t.replace(/&/g, e) : `${e} ${t}` : t, ""); } const i = (n, e, t) => { const o = a(t).match(/:not\([^)]*\)/g) || []; o.length > 0 && o.some(s) && l("Concat ':not' selector not support in legacy browsers.", t); }; export { i as default };