On 10/03/2023 00:36, Matt wrote:
(concat "^" (regexp-quote org-babel-sh-prompt) " *") -> "^org_babel_sh_prompt> *"Currently, the two combine via the concat to give*two* spaces in the regexp.
"*" means zero or more, so " *" with two spaces acts like " +" one or more space characters. It is unsafe to append just "*" or "+" to another regexp since you can not ensure what is the trailing pattern of the preceding regexp.