MCPcopy Create free account
hub / github.com/esengine/esengine / normalizeURL

Method normalizeURL

packages/fairygui/src/package/UIPackage.ts:244–248  ·  view source on GitHub ↗

* Normalize URL * 标准化 URL

(url: string)

Source from the content-addressed store, hash-verified

242 * 标准化 URL
243 */
244 public static normalizeURL(url: string): string {
245 if (!url) return '';
246 if (url.startsWith('ui://')) return url;
247 return 'ui://' + url;
248 }
249
250 /**
251 * Get item URL

Callers 2

getObjectMethod · 0.80
defaultItemMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected