fixing a couple codeql warnings about incomplete string replacement (#24518)

This commit is contained in:
Kim Santiago
2023-09-27 09:42:47 -07:00
committed by GitHub
parent efcf52f62c
commit 9a1d823c69
2 changed files with 2 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ export async function getUniqueFileName(fileName: string, folderPath?: string):
}
export function escapeClosingBrackets(str: string): string {
return str.replace(']', ']]');
return str.replace(/]/g, ']]');
}
/**