Skip to content

Commit

Permalink
Merge pull request #4 from sot/prompt_time_regex
Browse files Browse the repository at this point in the history
Fix regular expression in prompt for single-digit hours.
  • Loading branch information
jeanconn committed Aug 2, 2013
2 parents aafadde + c4e73b1 commit 36aaaf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ska/Shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def _setup_tcsh_shell(logfile):
import pexpect
prompt = r'Tcsh-%P> '
prompt2 = r'Tcsh-%P- '
re_prompt = re.compile(r'Tcsh-\d\d:\d\d:\d\d([->]) ')
re_prompt = re.compile(r'Tcsh-(\d)?\d:\d\d:\d\d([->]) ')

# Tcsh puts an extra \r after the original command, which turns in an extra
# line that needs to be skipped.
Expand Down

0 comments on commit 36aaaf4

Please sign in to comment.