Imvprove repec validation function.
Merge pull request #6606 from openscholar/repec-fix

Improve repec validation function.