Potential fix for code scanning alert no. 84: Incomplete string escaping or encoding
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
@@ -11,7 +11,7 @@ export default async (dataDir: string) => {
|
||||
config.servers.map(async (server) => {
|
||||
const networkConfResp = await fetch(server.url)
|
||||
const networkConf = JSON.parse(
|
||||
(await networkConfResp.json()).content.replace('\\', '')
|
||||
(await networkConfResp.json()).content.replace(/\\/g, '')
|
||||
)
|
||||
const funcVer = networkConf.funcVer
|
||||
const networkConfUrls = networkConf.configs[funcVer].network
|
||||
|
||||
Reference in New Issue
Block a user