From aba31e0c9bb7da9d3aee463ff51aec1134ea6af9 Mon Sep 17 00:00:00 2001 From: Cheng Liu Date: Mon, 11 Mar 2024 16:34:12 -0700 Subject: [PATCH] chore: remove replace github hostname --- .../sparo-real-repo-test/src/start-test.ts | 5 +---- build-tests/test-utilities/src/index.ts | 15 ++++----------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/build-tests/sparo-real-repo-test/src/start-test.ts b/build-tests/sparo-real-repo-test/src/start-test.ts index 0dfe9bb..a35407c 100644 --- a/build-tests/sparo-real-repo-test/src/start-test.ts +++ b/build-tests/sparo-real-repo-test/src/start-test.ts @@ -20,10 +20,7 @@ export async function runAsync(runScriptOptions: IRunScriptOptions): Promise fn(text, workingDirectory), text); } /** @@ -291,12 +290,6 @@ function replaceWorkingDirectoryPath(text: string, workingDirectory: string): st function replaceFolderCountString(text: string): string { return text.replace(/Checking out \d+ folders/g, 'Checking out __FOLDER_COUNT__ folders'); } -/** - * Replace "https://github.com/" and "git@github.com:" with "__GITHUB_HOSTNAME__". - */ -function replaceGitHubHostname(text: string): string { - return text.replace(/(https?:\/\/|git\@)github\.com[/:]/g, '__GITHUB_HOSTNAME__'); -} async function* enumerateFolderPaths( absoluteFolderPath: string,