From 7e1e92795e818db935afdbcad26b772735d02b9a Mon Sep 17 00:00:00 2001 From: Jayden Date: Sat, 6 Jul 2024 00:58:57 +0800 Subject: [PATCH] Update utils.ts --- packages/phase2cli/src/lib/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/phase2cli/src/lib/utils.ts b/packages/phase2cli/src/lib/utils.ts index eb83d6e5..b0124116 100644 --- a/packages/phase2cli/src/lib/utils.ts +++ b/packages/phase2cli/src/lib/utils.ts @@ -664,7 +664,7 @@ export const handleStartOrResumeContribution = async ( // Read local transcript file info to get the contribution hash. const transcriptContents = readFile(transcriptLocalFilePath) - const matchContributionHash = transcriptContents.match(/Contribution.+Hash.+\n\t\t.+\n\t\t.+\n.+\n\t\t.+\n/) + const matchContributionHash = transcriptContents.match(/Contribution.+Hash.+\n\t\t.+\n\t\t.+\n.+\n\t\t.+(\r?\n)/) if (!matchContributionHash) showError(COMMAND_ERRORS.COMMAND_CONTRIBUTE_FINALIZE_NO_TRANSCRIPT_CONTRIBUTION_HASH_MATCH, true)