Skip to content

Commit d8ecbbf

Browse files
authored
Fix scoped packages rendering in version entry view (codesandbox#2979)
1 parent c5ce0e6 commit d8ecbbf

File tree

1 file changed

+1
-1
lines changed
  • packages/app/src/app/pages/Sandbox/Editor/Workspace/Dependencies/VersionEntry

1 file changed

+1
-1
lines changed

packages/app/src/app/pages/Sandbox/Editor/Workspace/Dependencies/VersionEntry/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interface State {
2929

3030
function formatVersion(version: string) {
3131
if (CSB_PKG_PROTOCOL.test(version)) {
32-
const commitSha = version.match(/commit\/(.*)\//);
32+
const commitSha = version.match(/commit\/([\w\d]*)\//);
3333
if (commitSha && commitSha[1]) {
3434
return `csb:${commitSha[1]}`;
3535
}

0 commit comments

Comments
 (0)