-
Notifications
You must be signed in to change notification settings - Fork 72
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
Regex exprerssions not correctly formed!!! #63
Comments
This can be fixed by making the following two changes:
replace for
2 In load_cached_page() remove the requirement for all headers
|
Thank you for this. I'll check it out. |
I think the 0 or 1 instance of arch is because old kernel versions on the web site didn't have arch subdirectores, but later ones do. I'll try to test this with a forced/faked arch and see if I can see what you're describing. |
Apparently no longer a problem. Testing in an arm64 vm and it's matching correctly. |
Given
rex_header_all = new Regex("(?:" + NATIVE_ARCH + """/|>)?linux-headers-[a-zA-Z0-9.\-_]*_all.deb""");
Where NATIVE_ARCH = 'arm64' and the expression equals:
(?:arm64/|>)?linux-headers-[a-zA-Z0-9.\-_]*_all.deb
Should not match the following :
<a href="amd64/linux-headers-5.8.12-050812_5.8.12-050812.202009261732_all.deb">amd64/linux-headers-5.8.12-050812_5.8.12-050812.202009261732_all.deb</a><br>
However it does!
Because arm64 does not equal amd64. Otherwise why bother explicitly providing NATIVE_ARCH?
The text was updated successfully, but these errors were encountered: