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

Function isValidSheetName

frontend/src/react/stores/app/sheet.ts:12–16  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

10import { toError } from "./utils";
11
12function isValidSheetName(name: string): boolean {
13 if (typeof name !== "string") return false;
14 const uid = extractSheetUID(name);
15 return Boolean(uid) && uid !== "-1" && !uid.startsWith("-");
16}
17
18export const createSheetSlice: AppSliceCreator<SheetSlice> = (set, get) => ({
19 sheetsByName: {},

Callers 1

createSheetSliceFunction · 0.85

Calls 1

extractSheetUIDFunction · 0.90

Tested by

no test coverage detected