Skip to content

Commit d5bc935

Browse files
authored
add .gjs and .gts files (#126)
1 parent 7d19ff1 commit d5bc935

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

addlicense/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ func licenseHeader(path string, tmpl *template.Template, data LicenseData) ([]by
361361
switch fileExtension(base) {
362362
case ".c", ".h", ".gv", ".java", ".scala", ".kt", ".kts":
363363
lic, err = executeTemplate(tmpl, data, "/*", " * ", " */")
364-
case ".js", ".mjs", ".cjs", ".jsx", ".tsx", ".css", ".scss", ".sass", ".ts":
364+
case ".js", ".mjs", ".cjs", ".jsx", ".tsx", ".css", ".scss", ".sass", ".ts", ".gjs", ".gts":
365365
lic, err = executeTemplate(tmpl, data, "/**", " * ", " */")
366366
case ".cc", ".cpp", ".cs", ".go", ".hh", ".hpp", ".m", ".mm", ".proto", ".rs", ".swift", ".dart", ".groovy", ".v", ".sv", ".lr":
367367
lic, err = executeTemplate(tmpl, data, "", "// ", "")

addlicense/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func TestLicenseHeader(t *testing.T) {
308308
"/*\n * HYS\n */\n\n",
309309
},
310310
{
311-
[]string{"f.js", "f.mjs", "f.cjs", "f.jsx", "f.tsx", "f.css", "f.scss", "f.sass", "f.ts"},
311+
[]string{"f.js", "f.mjs", "f.cjs", "f.jsx", "f.tsx", "f.css", "f.scss", "f.sass", "f.ts", "f.gjs", "f.gts"},
312312
"/**\n * HYS\n */\n\n",
313313
},
314314
{

0 commit comments

Comments
 (0)