Skip to content

enh(shell) allow period in prompt match (#4244) #4245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ianw
Copy link

@ianw ianw commented Apr 24, 2025

Allow a "." to match in the prompt section of shell/console examples.

Changes

Checklist

  • Modified existing markup test to also cover this
  • Updated the changelog at CHANGES.md

Allow a "." to match in the prompt section of shell/console examples.
Comment on lines -1 to +3
pao-sw-a04-40(config)# interface range ethernet 1/1/1-1/1/9
pao-sw-a04-42(conf-range-eth1/1/1-1/1/9)# switchport trunk allowed vlan 1102
pao-sw-a04-42(conf-range-eth1/1/1-1/1/9)# show configuration
pao.sw.a04-40(config)# interface range ethernet 1/1/1-1/1/9
pao.sw.a04-42(conf-range-eth1/1/1-1/1/9)# switchport trunk allowed vlan 1102
pao.sw.a04-42(conf-range-eth1/1/1-1/1/9)# show configuration
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would we remove the old tests? The goal here is to support both, yes? If so lets put the old tests back so that we're testing both formats.

Otherwise seems reasonable. Thanks!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this replaces a “-“ with a “.” but retains other “-“ it feels to me this covers both cases OK. If you feel strongly I can make another separate test.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, lets keep the old tests and just add the 3 new lines of tests right after. That'd be perfect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants