MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / isValidNetworkEntry

Function isValidNetworkEntry

frontend/src/utils/forms/UserUtils.js:5–9  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

3import API from '../../api.js';
4
5const isValidNetworkEntry = (entry) =>
6 entry.match(IPV4_CIDR_REGEX) ||
7 entry.match(IPV6_CIDR_REGEX) ||
8 (entry + '/32').match(IPV4_CIDR_REGEX) ||
9 (entry + '/128').match(IPV6_CIDR_REGEX);
10const NETWORK_KEYS = Object.keys(NETWORK_ACCESS_OPTIONS);
11
12export const createUser = (values) => {

Callers 1

getFormValidatorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected