aboutsummaryrefslogtreecommitdiff
path: root/aux/workflow
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-07-14 12:30:29 -0300
committerEuAndreh <eu@euandre.org>2021-07-14 12:36:38 -0300
commitb1103a7cec6b4b32c65a33810fd68208cbf953e2 (patch)
tree68c042916bff9c642fd3d38205f00e5ae9474f0d /aux/workflow
parentTODOs.md: Add #task-6946fc69-3f25-fc6b-5f4d-89cb940021f0 (diff)
downloadgit-permalink-b1103a7cec6b4b32c65a33810fd68208cbf953e2.tar.gz
git-permalink-b1103a7cec6b4b32c65a33810fd68208cbf953e2.tar.xz
aux/workflow/TODOs.sh: Allow tags to appear after the ID marker
Adjust aux/workflow/assert-todos.sh accordingly.
Diffstat (limited to '')
-rwxr-xr-xaux/workflow/TODOs.sh2
-rwxr-xr-xaux/workflow/assert-todos.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/aux/workflow/TODOs.sh b/aux/workflow/TODOs.sh
index 6c24c3e..d590610 100755
--- a/aux/workflow/TODOs.sh
+++ b/aux/workflow/TODOs.sh
@@ -39,7 +39,7 @@ if [ -z "${PROJECT_UC:-}" ]; then
PROJECT_UC="$PROJECT"
fi
-TODOS_ADD_REGEX='s/^## (TODO|DOING|WAITING|MEETING|INACTIVE|NEXT|CANCELLED|DONE) (.*) \{#(.*?)\}$/## <a href="#\3"><span class="\1">\1<\/span> \2<\/a>\n<pre class="header-anchor" id="\3">#\3<\/pre>\n/'
+TODOS_ADD_REGEX='s/^## (TODO|DOING|WAITING|MEETING|INACTIVE|NEXT|CANCELLED|DONE) (.*) \{#(.*?)\}(.*)$/## <a href="#\3"><span class="\1">\1<\/span> \2<\/a>\4\n<pre class="header-anchor" id="\3">#\3<\/pre>\n/'
TODOS_CLEANUP_REGEX1='s/(<a><a)/<a/'
TODOS_CLEANUP_REGEX2='s/<\/a><\/a>/<\/a>/'
diff --git a/aux/workflow/assert-todos.sh b/aux/workflow/assert-todos.sh
index ca73b7f..b5e7375 100755
--- a/aux/workflow/assert-todos.sh
+++ b/aux/workflow/assert-todos.sh
@@ -30,7 +30,7 @@ h2flag == 1 {
}
/^## (TODO|DOING|WAITING|MEETING|INACTIVE|NEXT|CANCELLED|DONE)/ {
- if (match($0, / \{#.*?\}$/) == 0) {
+ if (match($0, / \{#.*?\}.*$/) == 0) {
print "Missing ID for line " NR ":\n" $0
exitstatus = 1
}