mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 02:21:07 +03:30
19 lines
395 B
JavaScript
Vendored
19 lines
395 B
JavaScript
Vendored
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
|
|
var _common = require("./common");
|
|
|
|
var _default = function _default(length) {
|
|
return (0, _common.withParams)({
|
|
type: 'maxLength',
|
|
max: length
|
|
}, function (value) {
|
|
return !(0, _common.req)(value) || (0, _common.len)(value) <= length;
|
|
});
|
|
};
|
|
|
|
exports.default = _default; |