Update bash weirdness regex to be more permissive for #280 (#283)

This commit is contained in:
David Dworken 2025-01-13 14:56:12 -07:00 committed by GitHub
parent 2f3201ec81
commit 5528829d64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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