Skip to content

Commit 2fb1cc1

Browse files
refactor: update comment format for handlebars (.hbs) files (#48)
1 parent 7e4c65c commit 2fb1cc1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

addlicense/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ func licenseHeader(path string, tmpl *template.Template, data LicenseData) ([]by
375375
case ".hs", ".sql", ".sdl":
376376
lic, err = executeTemplate(tmpl, data, "", "-- ", "")
377377
case ".hbs":
378-
lic, err = executeTemplate(tmpl, data, "{{!--", " ", "--}}")
378+
lic, err = executeTemplate(tmpl, data, "{{!", " ", "}}")
379379
case ".html", ".htm", ".xml", ".vue", ".wxi", ".wxl", ".wxs":
380380
lic, err = executeTemplate(tmpl, data, "<!--", " ", "-->")
381381
case ".php":

addlicense/main_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ func TestLicenseHeader(t *testing.T) {
335335
},
336336
{
337337
[]string{"f.hbs"},
338-
"{{!--\n HYS\n--}}\n\n",
338+
"{{!\n HYS\n}}\n\n",
339339
},
340340
{
341341
[]string{"f.html", "f.htm", "f.xml", "f.vue", "f.wxi", "f.wxl", "f.wxs"},

0 commit comments

Comments
 (0)