A regularity theorem for conservation laws