Actions
Bug #2685
closedRegular expression problems on checking installation media name
Description
When creating a media with some format can lead to the foreman being stuck:
The root cause is the regular expression checking the name of media on spaces:
"SimpleOrg/Dev_Env/PublishedRHEL532 RHEL Server 5.9 i386" =~ /\A(\S+\s?)+\Z
This takes ages to compute.
On the other hand, it doesn't catch this example "My Media with trailing space "
The more efficient and working regexp should be
/\A(\S+\s)*\S+\Z/
Going to send a PR
Actions