From 28872f5f5d16ba0111e0b2a2f0d75def6b8481d6 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Wed, 8 Apr 2020 19:32:19 +0200 Subject: [PATCH] copyright for ts --- snippets/copyright/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/copyright/index.js b/snippets/copyright/index.js index fecd968..eecbf9c 100644 --- a/snippets/copyright/index.js +++ b/snippets/copyright/index.js @@ -86,7 +86,7 @@ async function fix_all_copy (folder, license = '', software = '') { await map_all_files (folder, (data, filename) => { const shebang = /^#!.*?\n\n/gu; const shebang_line = shebang.exec (data); - if (!(/\.js$/u).test (filename) && !regex.test (data)) + if (!(/\.(?:js|ts|mjs)$/u).test (filename) && !regex.test (data)) return null; return (shebang_line ? shebang_line[0] : '') + get_copyright_notice (license, software)