From 706b5d384d9a707b314afa90d94356073b6fd59e Mon Sep 17 00:00:00 2001 From: Klaus Kaempf Date: Sun, 29 Jan 2006 15:34:08 +0000 Subject: [PATCH] only string NOT starting with "/" are named/versioned caps --- zypp/CapFactory.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zypp/CapFactory.cc b/zypp/CapFactory.cc index 0adccc689..33d70ad0d 100644 --- a/zypp/CapFactory.cc +++ b/zypp/CapFactory.cc @@ -331,7 +331,7 @@ namespace zypp { // strval_r has at least two words which could make 'op edition'? // improve regex! - str::regex rx( "(.*[^ \t])([ \t]+)([^ \t]+)([ \t]+)([^ \t]+)" ); + str::regex rx( "[^/](.*[^ \t])([ \t]+)([^ \t]+)([ \t]+)([^ \t]+)" ); str::smatch what; if( str::regex_match( strval_r.begin(), strval_r.end(),what, rx ) ) { -- 2.34.1