MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / orderValidator

Function orderValidator

pkg/webui/containers/fetch-table/index.js:45–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44const pageValidator = page => (!Boolean(page) || page < 0 ? DEFAULT_PAGE : page)
45const orderValidator = order =>
46 typeof order === 'string' && order.match(/-?[a-z0-9]/) === null ? undefined : order
47
48const m = defineMessages({
49 errorMessage: `There was an error and the list of {entity, select,

Callers 1

fetchItemsFunction · 0.85

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected