commit 1f0371367008289040e8f2c72d37649bd4e2ca44
parent 3c3781a5fc3a3e263dece4f2ab54bbeb1fcd257c
Author: Sebastian <sebastian@sebsite.pw>
Date: Sat, 30 Sep 2023 23:27:13 -0400
cmd/hare: only allow one ^ in -T
So you can no longer do -T^^ or -T^^+foo
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/hare/util.ha b/cmd/hare/util.ha
@@ -9,7 +9,7 @@ use os;
use strings;
fn merge_tags(current: *[]str, new: str) (void | module::error) = {
- let trimmed = strings::ltrim(new, '^');
+ let trimmed = strings::trimprefix(new, "^");
if (trimmed != new) {
strings::freeall(*current);
*current = [];