Skip to content
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

BBPP134-1942 adding back ab and 2/3 special case regex #27

Merged
merged 3 commits into from
Jul 17, 2024
Merged

Conversation

jdcourcol
Copy link
Contributor

@jdcourcol jdcourcol commented Jul 15, 2024

@@ -8,7 +8,7 @@
},
"layers": {
"names": ["layer_1", "layer_2", "layer_3", "layer_4", "layer_5", "layer_6"],
"queries": ["@^(?!SSp-bfd-[A-Z][0-9]$).*1$", "@^(?!SSp-bfd-[A-Z][0-9]$).*2$", "@^(?!SSp-bfd-[A-Z][0-9]$).*3$", "@^(?!SSp-bfd-[A-Z][0-9]$).*4$", "@^(?!SSp-bfd-[A-Z][0-9]$).*5$", "@^(?!SSp-bfd-[A-Z][0-9]$).*6[ab]$"],
"queries": ["@^(?!SSp-bfd-[A-Z][0-9]$).*1[ab]?$", "@^(?!SSp-bfd-[A-Z][0-9]$).*2[ab]?$", "@^(?!SSp-bfd-[A-Z][0-9]$).*[^/]3[ab]?$", "@^(?!SSp-bfd-[A-Z][0-9]$).*4[ab]?$", "@^(?!SSp-bfd-[A-Z][0-9]$).*5[ab]?$", "@^(?!SSp-bfd-[A-Z][0-9]$).*6[ab]$"],
Copy link
Collaborator

Choose a reason for hiding this comment

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

AFAIK, only the [ab]? is needed for layer 6.

Looking at the hierarchy, there is some strangeness in layer 2, which surprises me:

"acronym": "ENTl2a",
"acronym": "ENTm2a",
"acronym": "ENTl2b",
"acronym": "ENTm2b",

However, this isn't in SSp-bfd, so I don't think we need the [ab] anywhere but layer 6.

@lecriste
Copy link

Shall we add a test as @arnaudon mentioned here?

@jdcourcol
Copy link
Contributor Author

I am not sure if the last "?" is needed or not.

@mgeplf
Copy link
Collaborator

mgeplf commented Jul 16, 2024

I am not sure if the last "?" is needed or not.

Do you mean in "@^(?!SSp-bfd-[A-Z][0-9]$).*6[ab]?$"]?
In the current hierarchy, there is only 6a and 6b; so technically not needed.
I'm sure it will bite us in the future not having it though :(

@jdcourcol jdcourcol merged commit 6866229 into main Jul 17, 2024
4 checks passed
@jdcourcol jdcourcol deleted the layers branch July 17, 2024 09:28
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.

4 participants