From 5528829d64f7d7f6f3272869e69353a979f1ad6c Mon Sep 17 00:00:00 2001 From: David Dworken Date: Mon, 13 Jan 2025 14:56:12 -0700 Subject: [PATCH] Update bash weirdness regex to be more permissive for #280 (#283) --- client/lib/lib.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/lib/lib.go b/client/lib/lib.go index 01db01c..42ee4c9 100644 --- a/client/lib/lib.go +++ b/client/lib/lib.go @@ -160,7 +160,7 @@ func stripZshWeirdness(cmd string) string { return cmd } -var BASH_FIRST_COMMAND_BUG_REGEX = regexp.MustCompile(`^#\d+\s+$`) +var BASH_FIRST_COMMAND_BUG_REGEX = regexp.MustCompile(`^#\d+\s*$`) func isBashWeirdness(cmd string) bool { // Bash has this weird behavior where the it has entries like `#1664342754` in the