Script isn't extract .rar extension from IANA primary source
belsholff opened this issue · 1 comments
Checking an application error that use this module, I reach a problem with application/vnd.rar
mime-type (WinRAR file mime-type), that has not an associated extension in db.json
.
Checking the primary source URL indicated in src/iana-types.json
, there is an extension declared (.rar
). Maybe it could be a bug.
I cloned this module an tested some things:
-
extension extraction is working when manually called the function
extractTemplateExtensions(body)
before line 131 ofscripts/fetch-iana.js
-
opts.extensions === true
andopts.extensions.test(data.mime)
should befalse
in line 129 at same file from 1? This verification breaks the flow whereextractTemplateExtensions(body)
could be called.
At this time I can't get this fixed without mainainer's help and submit a pull request. Sorry.
I Accept any suggestions about how report an issue. I'm new in Github world. 😄
thx
Hi @belsholff thanks for the notice! I just landed a commit adding this associate for you. I'll have it released as a new version soon.