Skip to content

Commit

Permalink
Support WiX files
Browse files Browse the repository at this point in the history
  • Loading branch information
srgbtl authored and willnorris committed Aug 10, 2021
1 parent d43bb61 commit 9cc7ec3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "", "// ", "")
Expand Down
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
{
Expand Down

0 comments on commit 9cc7ec3

Please sign in to comment.