Provides mongoose support for storing RegExp