ant-design-x-vue
Version:
Craft AI-driven interfaces effortlessly
14 lines (13 loc) • 581 B
JavaScript
import { lintWarning as i } from "./utils.mjs";
const a = (n, t, e) => {
if (n === "content") {
const o = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
(typeof t != "string" || ["normal", "none", "initial", "inherit", "unset"].indexOf(t) === -1 && !o.test(t) && (t.charAt(0) !== t.charAt(t.length - 1) || t.charAt(0) !== '"' && t.charAt(0) !== "'")) && i(
`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${t}"'\`.`,
e
);
}
};
export {
a as default
};