Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85628954
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
606 B
Referenced Files
None
Subscribers
None
View Options
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
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Aug 8, 4:05 PM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1722431
Default Alt Text
(606 B)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment