MCPcopy Create free account
hub / github.com/develop202/migu_video / encodeURLEncoder

Function encodeURLEncoder

utils/refreshToken.js:8–14  ·  view source on GitHub ↗

* @param {string} str - * @returns {string} -

(str)

Source from the content-addressed store, hash-verified

6 * @returns {string} -
7 */
8function encodeURLEncoder(str) {
9 return encodeURIComponent(str)
10 .replace(/[!'()*]/g, (c) =>
11 '%' + c.charCodeAt(0).toString(16).toUpperCase()
12 )
13 .replace(/%20/g, '+');
14}
15
16/**
17 * 刷新token

Callers 1

refreshTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected