Skip to content

Commit 9cc7ec3

Browse files
srgbtlwillnorris
authored andcommitted
Support WiX files
1 parent d43bb61 commit 9cc7ec3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ func licenseHeader(path string, tmpl *template.Template, data licenseData) ([]by
297297
lic, err = executeTemplate(tmpl, data, "", "% ", "")
298298
case ".hs", ".sql", ".sdl":
299299
lic, err = executeTemplate(tmpl, data, "", "-- ", "")
300-
case ".html", ".xml", ".vue":
300+
case ".html", ".xml", ".vue", ".wxi", ".wxl", ".wxs":
301301
lic, err = executeTemplate(tmpl, data, "<!--", " ", "-->")
302302
case ".php":
303303
lic, err = executeTemplate(tmpl, data, "", "// ", "")

main_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ func TestLicenseHeader(t *testing.T) {
332332
"-- HYS\n\n",
333333
},
334334
{
335-
[]string{"f.html", "f.xml", "f.vue"},
335+
[]string{"f.html", "f.xml", "f.vue", "f.wxi", "f.wxl", "f.wxs"},
336336
"<!--\n HYS\n-->\n\n",
337337
},
338338
{

0 commit comments

Comments
 (0)