UNPKG

460 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.IsIP = void 0;
4const attribute_service_1 = require("../model/column/attribute-service");
5/**
6 * Checks for IPv4 (129.89.23.1) or IPv6 format
7 */
8function IsIP(target, propertyName) {
9 (0, attribute_service_1.addAttributeOptions)(target, propertyName, {
10 validate: {
11 isIP: true,
12 },
13 });
14}
15exports.IsIP = IsIP;
16//# sourceMappingURL=is-ip.js.map
\No newline at end of file