lint regex

This commit is contained in:
Henry Jameson 2026-08-04 00:18:12 +03:00
commit 5ce2ce63be

View file

@ -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 {