Skip to content

Commit

Permalink
fix(about): short hash may not be 9 chars (#286) (#287)
Browse files Browse the repository at this point in the history
(cherry picked from commit a3e3bfc)

Co-authored-by: Andrew Azores <aazores@redhat.com>
  • Loading branch information
mergify[bot] and andrewazores authored Sep 15, 2021
1 parent 9917506 commit b53763c
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 b53763c

Please sign in to comment.