minishouyin/node_modules/@ant-design/cssinjs/es/linters/NaNLinter.js

7 lines
292 B
JavaScript
Raw Normal View History

2025-11-12 11:35:57 +08:00
import { lintWarning } from "./utils";
var linter = function linter(key, value, info) {
if (typeof value === 'string' && /NaN/g.test(value) || Number.isNaN(value)) {
lintWarning("Unexpected 'NaN' in property '".concat(key, ": ").concat(value, "'."), info);
}
};
export default linter;