mercurial/ui.py
changeset 44021 6d3b67a837a6
parent 43991 e3ce3731d621
child 44030 5ac0e6f19eb4
--- a/mercurial/ui.py	Sat Dec 28 01:12:19 2019 -0500
+++ b/mercurial/ui.py	Sat Dec 28 01:35:05 2019 -0500
@@ -1626,7 +1626,7 @@
         # prompt to start parsing. Sadly, we also can't rely on
         # choices containing spaces, ASCII, or basically anything
         # except an ampersand followed by a character.
-        m = re.match(br'(?s)(.+?)\$\$([^\$]*&[^ \$].*)', prompt)
+        m = re.match(br'(?s)(.+?)\$\$([^$]*&[^ $].*)', prompt)
         msg = m.group(1)
         choices = [p.strip(b' ') for p in m.group(2).split(b'$$')]