summary refs log tree commit diff
path: root/bin/todo
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbin/todo6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/todo b/bin/todo
index 7436779..51f60c0 100755
--- a/bin/todo
+++ b/bin/todo
@@ -52,9 +52,9 @@ function link(uri) {
     // support todotxt files
     if (filename() == "todo.txt") {
         status = "TODO"
-        if ($1 ~ /^x/) {
+        if ($1 == "x") {
             status = "DONE"
-            $0 = gensub(/^[x] /, "", "1")
+            $0 = gensub(/^x /, "", "1")
             $0 = strike($0)
         }
 
@@ -66,7 +66,7 @@ function link(uri) {
     }
 
     // support TODO files
-    if ($1 ~ /^(-|*)/) {
+    if ($1 == "*" || $1 == "-") {
         // detect status strings
         match($0, /\s(TODO|WIP|WAITING|DONE)\s/, arr)