From 24e0e8f261a9dc5724fae24e1df1180c0a111b34 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Wed, 15 Sep 2021 19:40:42 +0000 Subject: [PATCH] fix(about): short hash may not be 9 chars (#286) (cherry picked from commit a3e3bfc332e40a522c4c1aa6120be6a6ce58e969) --- src/app/AppLayout/AppLayout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/AppLayout/AppLayout.tsx b/src/app/AppLayout/AppLayout.tsx index 1d6e26db8..e818e934d 100644 --- a/src/app/AppLayout/AppLayout.tsx +++ b/src/app/AppLayout/AppLayout.tsx @@ -94,7 +94,7 @@ const AppLayout: React.FunctionComponent = ({children}) => { if (!cryostatVersion) { return; } - const expr = /^(?[a-zA-Z0-9-_.]+-[0-9]+-[a-z0-9]{9})(?:-dirty)?$/; + const expr = /^(?[a-zA-Z0-9-_.]+-[0-9]+-[a-z0-9]+)(?:-dirty)?$/; const result = cryostatVersion.match(expr); if (!result) { notificationsContext.warning('Cryostat Version Parse Failure', `Could not parse Cryostat version string '${cryostatVersion}'.`);