mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 01:41:07 +03:30
19 lines
417 B
JavaScript
Vendored
19 lines
417 B
JavaScript
Vendored
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
|
|
var _common = require("./common");
|
|
|
|
var _default = function _default(max) {
|
|
return (0, _common.withParams)({
|
|
type: 'maxValue',
|
|
max: max
|
|
}, function (value) {
|
|
return !(0, _common.req)(value) || (!/\s/.test(value) || value instanceof Date) && +value <= +max;
|
|
});
|
|
};
|
|
|
|
exports.default = _default; |