tests: accept underscore in arbitrary third-party version strings

Fixes #2626
This commit is contained in:
Martin Matuska committed 2025-05-23 13:20:25 +02:00
1 parent 2961b132d0
commit 9eacf09a86
1 file changed
+1 -1
+1 -1
View File
@@ -2456,7 +2456,7 @@ void assertVersion(const char *prog, const char *base)
/* Skip arbitrary third-party version numbers. */
while (s > 0 && (*q == ' ' || *q == '-' || *q == '/' || *q == '.' ||
isalnum((unsigned char)*q))) {
*q == '_' || isalnum((unsigned char)*q))) {
++q;
--s;
}