diff --git a/build/commit_hash.js b/build/commit_hash.js index 480672fa3..8225817ee 100644 --- a/build/commit_hash.js +++ b/build/commit_hash.js @@ -2,7 +2,7 @@ import childProcess from 'node:child_process' export const getCommitHash = () => { const subst = '$Format:%h$' - if (!subst.match(/Format:/)) { + if (!/Format:/.exec(subst)) { return subst } else { try {