From 5ce2ce63bef01a9ae8f982c3fb5901397d38ff6c Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 4 Aug 2026 00:18:12 +0300 Subject: [PATCH] lint regex --- build/commit_hash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {