MCPcopy Create free account
hub / github.com/github/docs / safeUrlDisplay

Function safeUrlDisplay

script/search/analyze-text.js:122–131  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

120}
121
122function safeUrlDisplay(url) {
123 const parsed = new URL(url)
124 if (parsed.password) {
125 parsed.password = '***'
126 }
127 if (parsed.username) {
128 parsed.username = parsed.username.slice(0, 4) + '***'
129 }
130 return parsed.toString()
131}
132async function analyzeVersion(client, texts, indexName, verbose = false) {
133 for (const text of texts) {
134 console.log(`RAW TEXT: 〝${chalk.italic(text)}〞`)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected