Skip to content

Commit

Permalink
chore: revert generic prompt pattern tweak, remove some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
carlmontanari committed Jan 13, 2024
1 parent 1a6cc0d commit bd50d0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions assets/platforms/huawei_vrp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ default:
textfsm-platform: 'huawei_vrp' # ignored in go because no ntc-templates
network-on-open:
- operation: 'acquire-priv' # targets default desired priv by default
# - operation: 'driver.send-command'
# command: 'terminal width 512'
# - operation: 'driver.send-command'
# command: 'user-interface current'
- operation: 'driver.send-command'
command: 'screen-length 0 temporary'
network-on-close:
Expand Down
2 changes: 1 addition & 1 deletion channel/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var (

func getPromptPattern() *regexp.Regexp {
promptPatternOnce.Do(func() {
promptPattern = regexp.MustCompile(`(?im)^<*[a-z\d.\-@()/:]{1,48}[#>$]\s*$`)
promptPattern = regexp.MustCompile(`(?im)^[a-z\d.\-@()/:]{1,48}[#>$]\s*$`)
})

return promptPattern
Expand Down

0 comments on commit bd50d0c

Please sign in to comment.