MCPcopy Create free account
hub / github.com/Shazbot/WH3-Mod-Manager / getDBNameFromString

Function getDBNameFromString

src/utility/packFileHelpers.ts:21–26  ·  view source on GitHub ↗
(packFileName: string)

Source from the content-addressed store, hash-verified

19};
20
21export const getDBNameFromString = (packFileName: string) => {
22 const dbNameMatch = packFileName.match(matchDBFileRegex);
23 if (dbNameMatch == null) return;
24 const dbName = dbNameMatch[1];
25 return dbName;
26};
27
28export const getDBSubnameFromString = (packFileName: string) => {
29 const dbNameMatch = packFileName.match(matchDBFileSubnameRegex);

Callers 5

buildDBReferenceTreeFunction · 0.90
tryGetPackWithReferenceFunction · 0.90
executeDBDuplicationFunction · 0.90
getDBSelectionForElementFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected