Allows regex to accept whitespace before and after the delimiter '|' because when added without a whitespace github bleeds the url and makes it redirect to a malformed URL.
Needs approval from an approver in each of these files:
- ~~[OWNERS](https://github.com/opendatahub-io/opendatahub-operator/blob/incubation/OWNERS)~~ [Sara4994]
Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
Description
Allows regex to accept whitespace before and after the delimiter '|' because when added without a whitespace github bleeds the url and makes it redirect to a malformed URL.
JIRA: https://issues.redhat.com/browse/RHOAIENG-9630
context: https://docs.google.com/document/d/1YX0zAxkl4N6-K5t4INsBqnUAxTN0GDPWV1jn9XjkgPg/edit?disco=AAABQq9SeXI
How Has This Been Tested?
The text to test is
and the code to test is https://github.com/opendatahub-io/opendatahub-operator/blob/incubation/.github/scripts/get-release-branches.js#L22-L39 with the modified regex from the pr.