Support WiX files
This commit is contained in:
committed by
Will Norris
parent
d43bb61fdf
commit
9cc7ec3e36
2
main.go
2
main.go
@@ -297,7 +297,7 @@ func licenseHeader(path string, tmpl *template.Template, data licenseData) ([]by
|
||||
lic, err = executeTemplate(tmpl, data, "", "% ", "")
|
||||
case ".hs", ".sql", ".sdl":
|
||||
lic, err = executeTemplate(tmpl, data, "", "-- ", "")
|
||||
case ".html", ".xml", ".vue":
|
||||
case ".html", ".xml", ".vue", ".wxi", ".wxl", ".wxs":
|
||||
lic, err = executeTemplate(tmpl, data, "<!--", " ", "-->")
|
||||
case ".php":
|
||||
lic, err = executeTemplate(tmpl, data, "", "// ", "")
|
||||
|
||||
@@ -332,7 +332,7 @@ func TestLicenseHeader(t *testing.T) {
|
||||
"-- HYS\n\n",
|
||||
},
|
||||
{
|
||||
[]string{"f.html", "f.xml", "f.vue"},
|
||||
[]string{"f.html", "f.xml", "f.vue", "f.wxi", "f.wxl", "f.wxs"},
|
||||
"<!--\n HYS\n-->\n\n",
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user