Skip to content

Commit cc7ac57

Browse files
authored
tools/common.jam regexp review (#509)
1 parent 1e061c6 commit cc7ac57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/common.jam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ local rule toolset-tag ( name : type ? : property-set )
955955
case tru64cxx* : tag += tru ;
956956
case vacpp* : tag += xlc ;
957957
}
958-
local version = [ MATCH "<toolset.*version>([0123456789]+)[.]?([0123456789]*)"
958+
local version = [ MATCH "<toolset.*version>([0-9]+)[.]?([0-9]*)"
959959
: $(properties) ] ;
960960
# For historical reasons, vc6.0 and vc7.0 use different naming.
961961
if $(tag) = vc
@@ -1052,7 +1052,7 @@ local rule runtime-tag ( name : type ? : property-set )
10521052
# "<qt>4.6.0" will result in tag "qt460"
10531053
local rule qt-tag ( name : type ? : property-set )
10541054
{
1055-
local v = [ MATCH "([0123456789]+)[.]?([0123456789]*)[.]?([0123456789]*)" :
1055+
local v = [ MATCH "([0-9]+)[.]?([0-9]*)[.]?([0-9]*)" :
10561056
[ $(property-set).get <qt> ] ] ;
10571057
return qt$(v:J=) ;
10581058
}

0 commit comments

Comments
 (0)