Skip to content

Commit

Permalink
Merge 55caa90 into f9a48a2
Browse files Browse the repository at this point in the history
  • Loading branch information
yoleri committed Sep 14, 2020
2 parents f9a48a2 + 55caa90 commit c78a89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Exscript/protocols/drivers/junos.py
Expand Up @@ -55,7 +55,7 @@
_re_re = r'(?:' + _mb + r'|' + _ps + r')'
_edit = r'(?:\[edit[^\]\r\n]*\])'
_prefix = r'(?:[\r\n]+' + _re_re + r'?' + _edit + r'?)'
_prompt = r'[\r\n]+[\w\-\.]+@[\-\w+\.:]+[%>#] $'
_prompt = r'[\r\n]+[\w\-\.]+@[\-\w+\.:]+[~]?[\s%>#]+$'
_prompt_re = [re.compile(_prefix + r'?' + _prompt)]
_error_re = [re.compile(r'^(unknown|invalid|error|syntax error)', re.I)]
_junos_re = re.compile(r'\bjunos\b', re.I)
Expand Down

0 comments on commit c78a89c

Please sign in to comment.