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

Function extractSheetUID

frontend/src/utils/v1/sheet.ts:4–8  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

2import type { Worksheet } from "@/types/proto-es/v1/worksheet_service_pb";
3
4export const extractSheetUID = (name: string) => {
5 const pattern = /(?:^|\/)sheets\/([^/]+)(?:$|\/)/;
6 const matches = name.match(pattern);
7 return matches?.[1] ?? "-1";
8};
9
10export const setSheetStatement = (
11 sheet: Sheet | Worksheet,

Callers 12

isValidSheetNameFunction · 0.90
downloadSheetFunction · 0.90
handleSaveFunction · 0.90
checkSpecStatementFunction · 0.90
createSheetsFunction · 0.90
OptionsSectionFunction · 0.90
handleSaveFunction · 0.90
downloadSheetFunction · 0.90
checkSpecStatementFunction · 0.90
seedSheetStatementFunction · 0.90
useSheetStatementFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected