MCPcopy
hub / github.com/caprover/caprover / removeHttpHttps

Method removeHttpHttps

src/utils/Utils.ts:12–17  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

10 }
11
12 static removeHttpHttps(input: string) {
13 input = input.trim()
14 input = input.replace(/^(?:http?:\/\/)?/i, '')
15 input = input.replace(/^(?:https?:\/\/)?/i, '')
16 return input
17 }
18
19 static generateRandomString(byteLength?: number) {
20 if (!byteLength) {

Callers 4

sanitizeRepoPathHttpsMethod · 0.80
addRegistryMethod · 0.80
updateRegistryMethod · 0.80
SystemRouter.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected