Skip to content

Commit

Permalink
Revert 94483a4 (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ju authored Nov 28, 2023
1 parent 9103d86 commit 0f07759
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addlicense/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ func licenseHeader(path string, tmpl *template.Template, data LicenseData) ([]by
case ".hs", ".sql", ".sdl":
lic, err = executeTemplate(tmpl, data, "", "-- ", "")
case ".hbs":
lic, err = executeTemplate(tmpl, data, "{{!", " ", "~}}")
lic, err = executeTemplate(tmpl, data, "{{!", " ", "}}")
case ".html", ".htm", ".xml", ".vue", ".wxi", ".wxl", ".wxs":
lic, err = executeTemplate(tmpl, data, "<!--", " ", "-->")
case ".php":
Expand Down
2 changes: 1 addition & 1 deletion addlicense/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func TestLicenseHeader(t *testing.T) {
},
{
[]string{"f.hbs"},
"{{!\n HYS\n~}}\n\n",
"{{!\n HYS\n}}\n\n",
},
{
[]string{"f.html", "f.htm", "f.xml", "f.vue", "f.wxi", "f.wxl", "f.wxs"},
Expand Down

0 comments on commit 0f07759

Please sign in to comment.