Related to the Issue #52609, the MIME-info database contains the regex that is not expanded by TypeByExtension.
Expanding regex is not suitable in all cases, for example 60:application/x-sharedlib:*.so.[0-9]*.
Instead, a new function can be added to the API that should receive a type based on full filename, instead of expanding every possible filename for that extension.
Related to the Issue #52609, the MIME-info database contains the regex that is not expanded by
TypeByExtension.Expanding regex is not suitable in all cases, for example
60:application/x-sharedlib:*.so.[0-9]*.Instead, a new function can be added to the API that should receive a type based on full filename, instead of expanding every possible filename for that extension.