Regularity of ideals of Borel type is linearly bounded