Fixed bug with regex in the index generator for the documentation.