aboutsummaryrefslogtreecommitdiff
path: root/testdata/Apply_test.txt
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-14 04:40:19 +0700
committerShulhan <ms@kilabit.info>2026-01-14 04:40:19 +0700
commitb37a4cd18827d6a8dafe2729ba72a8e13e8fbb8c (patch)
treefec0411825230780e08a8cf6619b683e46898e01 /testdata/Apply_test.txt
parent9801b1cf64dbf8340fe532542bae186a6bb507dd (diff)
downloadspdxconv-b37a4cd18827d6a8dafe2729ba72a8e13e8fbb8c.tar.xz
all: fix error when scanning and apply empty file
Diffstat (limited to 'testdata/Apply_test.txt')
-rw-r--r--testdata/Apply_test.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/testdata/Apply_test.txt b/testdata/Apply_test.txt
index a8c3e6d..13ee6be 100644
--- a/testdata/Apply_test.txt
+++ b/testdata/Apply_test.txt
@@ -59,6 +59,12 @@ pattern = "^(//+|#+|/\\*+|<!--+|--+)?\\s*Copyright\\s+(?<year>\\d{4}),?\\s+(?<au
delete_line_before = "^(//+|#+|/\\*+|<!--+|--+)$"
delete_line_after = "^(//+|#+|\\*+/|--+>|--+)$"
+>>> empty.html
+
+<<< empty.html
+<!-- SPDX-License-Identifier: GPL-3.0-only -->
+<!-- SPDX-FileCopyrightText: 2026 M. Shulhan <ms@kilabit.info> -->
+
>>> without_spdx_license_id.go
1
2