Restrict the regex to only allow 0 or 1. Not 10.

Restrict allowed yumrepo values to 0 | 1. Not 10

Issue number #21458