UNPKG

lakutata

Version:

An IoC-based universal application framework.

34 lines (30 loc) 618 B
/* Build Date: Mon Jan 05 2026 23:52:23 GMT+0800 (China Standard Time) */ "use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function e(e) { let t; const r = e.indexOf("@"); const o = e.lastIndexOf(":"); if (r >= 0) { t = r; } else if (o >= 0) { t = o; } else { return { repo: e }; } const s = e.slice(t + 1); if (s.indexOf("/") === -1) { return { repo: e.slice(0, t), tag: s }; } return { repo: e }; } exports.ParseRepositoryTag = e;