Skip to content

Commit

Permalink
fix(about): short hash may not be 9 chars (#286)
Browse files Browse the repository at this point in the history
(cherry picked from commit a3e3bfc)
  • Loading branch information
andrewazores authored and mergify-bot committed Sep 15, 2021
1 parent 9917506 commit 24e0e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/AppLayout/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const AppLayout: React.FunctionComponent<IAppLayout> = ({children}) => {
if (!cryostatVersion) {
return;
}
const expr = /^(?<describe>[a-zA-Z0-9-_.]+-[0-9]+-[a-z0-9]{9})(?:-dirty)?$/;
const expr = /^(?<describe>[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}'.`);
Expand Down

0 comments on commit 24e0e8f

Please sign in to comment.