adds Nim-related mimetypes back (#23589)

ref https://github.com/nim-lang/Nim/pull/23226
This commit is contained in:
ringabout
2024-05-10 16:30:24 +08:00
committed by GitHub
parent 2e3777d6f3
commit 1eb9aac2f7
2 changed files with 9 additions and 0 deletions

View File

@@ -432,6 +432,10 @@ const mimes* = {
"msty": "application/vnd.muvee.style",
"taglet": "application/vnd.mynfc",
"nlu": "application/vnd.neurolanguage.nlu",
"nim": "text/nim",
"nimble": "text/nimble",
"nimf": "text/nim",
"nims": "text/nim",
"ntf": "application/vnd.nitf",
"nitf": "application/vnd.nitf",
"nnd": "application/vnd.noblenet-directory",

View File

@@ -19,5 +19,10 @@ template main() =
# see also `runnableExamples`.
# xxx we should have a way to avoid duplicating code between runnableExamples and tests
doAssert m.getMimetype("nim") == "text/nim"
doAssert m.getMimetype("nimble") == "text/nimble"
doAssert m.getMimetype("nimf") == "text/nim"
doAssert m.getMimetype("nims") == "text/nim"
static: main()
main()