From 3e535ada9e3d36d3626ae1dbcdef43aff6a6441d Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 16 Mar 2022 11:35:19 +0530 Subject: tissue: Enforce prefix check on checklist. * tissue/issue.scm (file-details): Match checklist only if it starts at the beginning of its line. --- tissue/issue.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tissue/issue.scm b/tissue/issue.scm index 262e327..7a5b6ff 100644 --- a/tissue/issue.scm +++ b/tissue/issue.scm @@ -130,7 +130,7 @@ strings, and return them as a list." ;; checkbox has any character other ;; than space in it, the task is ;; completed. - ((string-match "\\* \\[(.)\\]" line) + ((string-match "^\\* \\[(.)\\]" line) => (lambda (m) (hashtable-update! result 'tasks 1+ 0) (unless (string=? (match:substring m 1) " ") -- cgit v1.2.3