Fix table of contents recognition regexp