Page MenuHomePhorge

No OneTemporary

Size
606 B
Referenced Files
None
Subscribers
None
diff --git a/build/commit_hash.js b/build/commit_hash.js
index 480672fa30..8225817ee0 100644
--- a/build/commit_hash.js
+++ b/build/commit_hash.js
@@ -1,18 +1,18 @@
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 {
return childProcess
.execSync('git rev-parse --short HEAD')
.toString()
.trim()
} catch (e) {
console.error('Failed run git:', e)
return 'UNKNOWN'
}
}
}

File Metadata

Mime Type
text/x-diff
Expires
Sat, Aug 8, 4:05 PM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1722431
Default Alt Text
(606 B)

Event Timeline