From f032f7a78bbac0ef7f2130d24140bdb709394445 Mon Sep 17 00:00:00 2001 From: Thibaud Colas Date: Mon, 31 Jan 2022 10:24:25 +0000 Subject: [PATCH 1/2] Add `.njk` extension for Nunjucks templates See https://mozilla.github.io/nunjucks/templating.html#file-extensions. --- identify/extensions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/identify/extensions.py b/identify/extensions.py index b5b9293..dd834a5 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -129,6 +129,7 @@ 'nims': {'text', 'nim'}, 'nimble': {'text', 'nimble'}, 'nix': {'text', 'nix'}, + 'njk': ('text', 'nunjucks'}, 'otf': {'binary', 'otf'}, 'p12': {'binary', 'p12'}, 'patch': {'text', 'diff'}, From 5680141a984a1cf1fda68575a1838b3fb3726cfa Mon Sep 17 00:00:00 2001 From: Thibaud Colas Date: Mon, 31 Jan 2022 10:35:02 +0000 Subject: [PATCH 2/2] Fix typo --- identify/extensions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/identify/extensions.py b/identify/extensions.py index dd834a5..f44e8fc 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -129,7 +129,7 @@ 'nims': {'text', 'nim'}, 'nimble': {'text', 'nimble'}, 'nix': {'text', 'nix'}, - 'njk': ('text', 'nunjucks'}, + 'njk': {'text', 'nunjucks'}, 'otf': {'binary', 'otf'}, 'p12': {'binary', 'p12'}, 'patch': {'text', 'diff'},