Learn more about cloning repositories
You have read-only access
Check separatorIndex is > -1 instead of truthiness