MCPcopy Index your code
hub / github.com/ZToolsCenter/ZTools / fromDevPluginName

Function fromDevPluginName

src/shared/pluginRuntimeNamespace.ts:25–30  ·  view source on GitHub ↗
(effectiveName: string)

Source from the content-addressed store, hash-verified

23 * 若传入名称不以 `__dev` 结尾,原样返回。
24 */
25export function fromDevPluginName(effectiveName: string): string {
26 if (effectiveName.endsWith(DEV_PLUGIN_SUFFIX)) {
27 return effectiveName.slice(0, -DEV_PLUGIN_SUFFIX.length)
28 }
29 return effectiveName
30}
31
32/**
33 * 设置页"我的数据"所需的最小插件数据记录。

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected