-
Notifications
You must be signed in to change notification settings - Fork 742
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
Augment and simplify regexes in alcatel_aos_sh_int_ethernet #1966
Conversation
from alcatel_aos_show_interfaces_ethernet since other index entries aren't set up that way
* Combine two chassis/slot/port regexes into one * Reduce SFP/SFP+/XFP regex with a modified pattern * Add flexibility to odd bandwidth capitalization
* Swap some regex from zero or more (*) to one or more (+) * Identified common instances where whitespace before colons vary!
* Fix self-induced broken index parsing
Hehe, I see what you did there in the index 🫠 ... there was a reason for the trailing @evilmonkey19 @jmcgill298 |
* almost missed simplifying this one, haha
I'm sorry about the index 😢 . It looks cool to me the changed you did 👍 Thanks! |
All good. |
Tweaks to PR #1946
$$
to single$
in index\s*
to\s+
where possible\s*
\S.+\S
regex to.+?
for several capture groups