Skip to content

Commit

Permalink
Add secondary prompt to RE match
Browse files Browse the repository at this point in the history
  • Loading branch information
drj11 committed Mar 8, 2012
1 parent b671cfc commit a297514
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dexy/filters/pexpect_filters.py
Expand Up @@ -259,10 +259,11 @@ class AbstractShell(PexpectReplFilter):
EXECUTABLE = None
INPUT_EXTENSIONS = [".txt", ".sh"]
OUTPUT_EXTENSIONS = ['.sh-session']
PROMPT_REGEX = r"\d*[#$]"
PROMPT_REGEX = r"\d*[#$>]"
INITIAL_PROMPT = PROMPT_REGEX
TRIM_PROMPT = PROMPT_REGEX
PS1 = "$ "
PS2 = "> "
# TODO Fix hanging on # comments in code

class KshInteractiveStrictFilter(AbstractShell):
Expand Down

0 comments on commit a297514

Please sign in to comment.