Skip to content

Commit

Permalink
Update utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jayden-sudo authored Jul 5, 2024
1 parent aade8e6 commit 7e1e927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/phase2cli/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7e1e927

Please sign in to comment.