diff options
Diffstat (limited to 'testdata/Apply_test.txt')
| -rw-r--r-- | testdata/Apply_test.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/testdata/Apply_test.txt b/testdata/Apply_test.txt index 8107ee8..a8c3e6d 100644 --- a/testdata/Apply_test.txt +++ b/testdata/Apply_test.txt @@ -48,14 +48,16 @@ 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)$" [match-license] -pattern = "^(//+|#+|/\\*+|<!--+)?\\s*(.*)governed by a BSD-style(.*)$" +pattern = "^(//+|#+|/\\*+|<!--+|--+)?\\s*(.*)governed by a BSD-style(.*)$" license_identifier = BSD-3-Clause -delete_line_after = "^(//+|#+|/\\*+|<!--+)?\\s*license that can(.*)$" -delete_line_after = "^(//+|#+|\\*+/|--+>)$" +delete_line_before = "^(//+|#+|/\\*+|<!--+|--+)$" +delete_line_after = "^(//+|#+|/\\*+|<!--+|--+)?\\s*license that can(.*)$" +delete_line_after = "^(//+|#+|\\*+/|--+>|--+)$" [match-copyright] -pattern = "^(//+|#+|/\\*+|<!--+)?\\s*Copyright\\s+(?<year>\\d{4}),?\\s+(?<author>.*)\\s+<(?<contact>.*)>.*$" -delete_line_before = "^(//+|#+|/\\*+|<!--+)$" +pattern = "^(//+|#+|/\\*+|<!--+|--+)?\\s*Copyright\\s+(?<year>\\d{4}),?\\s+(?<author>.*)\\s+<(?<contact>.*)>.*$" +delete_line_before = "^(//+|#+|/\\*+|<!--+|--+)$" +delete_line_after = "^(//+|#+|\\*+/|--+>|--+)$" >>> without_spdx_license_id.go 1 |
