Skip to content

Commit 4f67aec

Browse files
committed
fix: strip build suffix and trailing content from version display
1 parent 5ba1ba6 commit 4f67aec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/app/elements/left-bar/left-bar.component.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class ElementLeftBarComponent implements OnInit, AfterViewInit, OnDestroy
2525
@Input() collapsed: boolean = false;
2626
private resizeObserver!: ResizeObserver;
2727
showTree = true;
28-
version = version.replace(/-build\d+/i, '');
28+
version = version.replace(/-build\d+.*/i, '');
2929
menus: any[] = [];
3030
hasXPack: boolean = localStorage.getItem('hasXPack') === '1';
3131

0 commit comments

Comments
 (0)