diff --git a/ptk.nim b/ptk.nim index f2e861b..cd7b681 100644 --- a/ptk.nim +++ b/ptk.nim @@ -357,7 +357,7 @@ proc filterMarkIndices(timeline: Timeline, args: Table[string, Value]): seq[int] selected = selected.filterMarks(not tags.allIt(marks[mIdx].tags.contains(it))) if args["--matching"]: - let pattern = re(args["--matching"] ?: "") + let pattern = re("(?i)" & $(args["--matching"] ?: "")) selected = selected.filterMarks(marks[mIdx].summary.find(pattern).isSome) return sequtils.toSeq(selected.items).sorted(system.cmp) @@ -413,7 +413,7 @@ Options: let now = getTime().local # Parse arguments - let args = docopt(doc, version = "ptk 0.12.0") + let args = docopt(doc, version = "ptk 0.12.1") if args["--echo-args"]: echo $args diff --git a/ptk.nimble b/ptk.nimble index e39653f..eb771b8 100644 --- a/ptk.nimble +++ b/ptk.nimble @@ -1,6 +1,6 @@ # Package -version = "0.12.0" +version = "0.12.1" author = "Jonathan Bernard" description = "Personal Time Keeper" license = "MIT"