forgeplus-react/src/forge/common/util.js

7 lines
104 B
JavaScript

export function truncateCommitId(str) {
if (str.length > 11) {
return str.substring(0, 10)
}
}