cs
This commit is contained in:
7
node_modules/@ant-design/cssinjs/es/linters/NaNLinter.js
generated
vendored
Normal file
7
node_modules/@ant-design/cssinjs/es/linters/NaNLinter.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user