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

7 lines
111 B
JavaScript

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