MCPcopy Create free account
hub / github.com/bytebase/bytebase / validateString

Function validateString

frontend/src/plugins/cel/logic/validate.ts:21–24  ·  view source on GitHub ↗
(str: unknown)

Source from the content-addressed store, hash-verified

19} from "../types";
20
21const validateString = (str: unknown): boolean => {
22 if (typeof str !== "string") return false;
23 return str.trim().length > 0;
24};
25const validateNumber = (num: unknown): boolean => {
26 return isNumber(num);
27};

Callers 1

validateConditionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected