Added matchDocs method for working with globs.