Skip to content

Commit 1e061c6

Browse files
authored
tools/stlport.jam regexp review (#508)
1 parent 02b5e19 commit 1e061c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/stlport.jam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class stlport-target-class : basic-target
8585
self.headers = $(headers) ;
8686
self.libraries = $(libraries) ;
8787
self.version = $(version) ;
88-
self.version.5 = [ MATCH "^(5[.][0123456789]+).*" : $(version) ] ;
88+
self.version.5 = [ MATCH "^(5[.][0-9]+)" : $(version) ] ;
8989

9090
local requirements ;
9191
requirements += <stdlib-stlport:version>$(self.version) ;
@@ -147,7 +147,7 @@ class stlport-target-class : basic-target
147147

148148
# Starting with version 5.2.0, the STLport static libraries no
149149
# longer include a version number in their name
150-
local version.pre.5.2 = [ MATCH "^(5[.][01]+).*" : $(version) ] ;
150+
local version.pre.5.2 = [ MATCH "^(5[.][01])" : $(version) ] ;
151151
if $(version.pre.5.2) || [ feature.get-values <runtime-link> :
152152
$(raw) ] != "static"
153153
{

0 commit comments

Comments
 (0)