summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/htagml.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/htagml.c b/bin/htagml.c
index 6f2de596..670b74dd 100644
--- a/bin/htagml.c
+++ b/bin/htagml.c
@@ -90,12 +90,13 @@ int main(int argc, char *argv[]) {
 	size_t bufCap = 0;
 	while (0 < getline(&buf, &bufCap, file)) {
 		char *line = buf;
-		char *tag = strsep(&line, "\t ");
-		char *file = strsep(&line, "\t ");
+		char *tag = strsep(&line, "\t");
+		char *file = strsep(&line, "\t");
 		char *search = strsep(&line, "\n");
 		if (!tag || !file || !search) errx(EX_DATAERR, "malformed tags file");
 		if (search[0] != '/' || search[strlen(search)-1] != '/') {
-			errx(EX_DATAERR, "search is not forward regex: %s", search);
+			warnx("tag %s definition is not a forward search: %s", tag, search);
+			continue;
 		}
 		search++;
 		search[strlen(search)-1] = '\0';