DocRegistry FileType pattern matching doesn't work
The pattern matching for discovering a filetype in the docregistry
has the match call inversed. This feature seems to have always been
broken since being added 4 years ago, it was probably missed since
the feature is not used in core.