MCPcopy Create free account
hub / github.com/hackmdio/codimd / parseUrl

Function parseUrl

lib/realtime/realtime.js:318–330  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

316}
317
318function parseUrl (data) {
319 try {
320 if (url.URL) {
321 return new url.URL(data)
322 } else {
323 // fallback legacy api
324 // eslint-disable-next-line
325 return url.parse(data)
326 }
327 } catch (e) {
328 }
329 return null
330}
331
332function extractNoteIdFromSocket (socket) {
333 function extractNoteIdFromReferer (referer) {

Callers 1

extractNoteIdFromRefererFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected