MCPcopy Create free account
hub / github.com/sindresorhus/notifier-for-github / parseFullName

Function parseFullName

source/util.js:7–10  ·  view source on GitHub ↗
(fullName)

Source from the content-addressed store, hash-verified

5}
6
7export function parseFullName(fullName) {
8 const [, owner, repository] = fullName.match(/^([^/]*)(?:\/(.*))?/);
9 return {owner, repository};
10}
11
12export async function isNotificationTargetPage(url) {
13 const urlObject = new URL(url);

Callers 3

checkNotificationsFunction · 0.90
listRepositoriesFunction · 0.90
util-test.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected