Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
4595-diameter-test-Tweaked-version-string-extra...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 4595-diameter-test-Tweaked-version-string-extraction.patch of Package erlang
From bf012948f4bf5e985bfd5780110d59624393b5d3 Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Mon, 29 Apr 2024 10:28:33 +0200 Subject: [PATCH 5/7] [diameter|test] Tweaked version string extraction --- lib/diameter/test/diameter_app_SUITE.erl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/diameter/test/diameter_app_SUITE.erl b/lib/diameter/test/diameter_app_SUITE.erl index 6af2a776dc..a0e391d5cc 100644 --- a/lib/diameter/test/diameter_app_SUITE.erl +++ b/lib/diameter/test/diameter_app_SUITE.erl @@ -484,7 +484,14 @@ vsn_str(S) vsn_str(B) when is_binary(B) -> {ok, _} = re:compile(B), - binary_to_list(B). + %% Check if its a wildcard version: "1\\.." + Str = binary_to_list(B), + case lists:reverse(Str) of + [$*, $., $., $\\ | Rest] -> + lists:reverse(Rest); + _ -> + Str + end. match(S, RE) -> re:run(S, RE, [{capture, none}]). -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor