lint regex
This commit is contained in:
parent
c3af1698e1
commit
5ce2ce63be
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue