diff options
Diffstat (limited to 'spdxconv_test.go')
| -rw-r--r-- | spdxconv_test.go | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/spdxconv_test.go b/spdxconv_test.go index fd318b8..d73c69f 100644 --- a/spdxconv_test.go +++ b/spdxconv_test.go @@ -39,27 +39,27 @@ func TestInit(t *testing.T) { MaxLineMatch: 10, MatchFileComment: []*matchFileComment{{ Pattern: `^.*\.(adoc|asciidoc|c|cc|cpp|cs|dart|go|h|hh|hpp|java|js|jsx|jsonc|kt|kts|php|rs|sass|scss|swift|ts|tsx)$`, - Prefix: `// `, + Prefix: `//`, }, { Pattern: `^.*\.(aff|bash|csh|dockerfile|env|gitignore|hcl|ipynb|make|pl|pm|py|ps1|rb|sh|tf|yaml|yml|zsh)$`, - Prefix: `# `, + Prefix: `#`, }, { Pattern: `^.*\.(css)$`, - Prefix: `/* `, - Suffix: ` */`, + Prefix: `/*`, + Suffix: `*/`, }, { Pattern: `^.*\.(fxml|htm|html|html5|kml|markdown|md|xml)$`, - Prefix: `<!-- `, - Suffix: ` -->`, + Prefix: `<!--`, + Suffix: `-->`, }, { Pattern: `^.*\.(lua|sql)$`, - Prefix: `-- `, + Prefix: `--`, }, { Pattern: `^.*\.(rst)$`, - Prefix: `.. `, + Prefix: `..`, }, { Pattern: `^.*\.(tex)$`, - Prefix: `% `, + Prefix: `%`, }, { Pattern: `^.*\.(apk|app|bz2|csv|doc|docx|exe|gif|gz|jpeg|jpg|json|pdf|png|ppt|pptx|svg|svgz|tar|tgz|xls|xlsx|zip)$`, }}, @@ -134,12 +134,12 @@ func TestScan(t *testing.T) { // //spdxconv:regular // -no_copyright_year.md,match,2,2026,default,0,<!-- ," -->" -po/included.go,match,1,2026,match,0,// , -test.go,match,1,2022,match,0,// , -test.html,match,4,2022,match,1,<!-- ," -->" -test.sh,default,0,2026,default,0,# , -test.sql,match,1,2022,match,0,-- , +no_copyright_year.md,match,2,2026,default,0,<!--,--> +po/included.go,match,1,2026,match,0,//, +test.go,match,1,2022,match,0,//, +test.html,match,4,2022,match,1,<!--,--> +test.sh,default,0,2026,default,0,#, +test.sql,match,1,2022,match,0,--, // //spdxconv:binary // |
