update regex to capture php versions with only two components

Closes: #1124008

Merge request reports

Loading