[NEXUS-6692] Fix url validation, copying regex from master