Index: trunk/tools/mwmultiversion/multiversion/checkoutMediaWiki |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | if ( count( $argv ) >= 3 ) { |
28 | 28 | $svnVersion = $argv[1]; // e.g. "X.XXwmfX" |
29 | 29 | $dstVersion = $argv[2]; // e.g. "php-X.XX" |
30 | | - if ( preg_match( '/^php-((?:\d+\.\d+|trunk)(?:-\d)?)$/', $dstVersion, $m ) ) { |
| 30 | + if ( preg_match( '/^php-((?:\d+\.\d+|trunk)(?:-\w+)?)$/', $dstVersion, $m ) ) { |
31 | 31 | $dstVersionNum = $m[1]; |
32 | 32 | $argsValid = true; |
33 | 33 | } |