Skip to content

Commit 69239ce

Browse files
committed
_WD_GetWebDriverVersion: regex fix
1 parent 888af6b commit 69239ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wd_helper.au3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,7 @@ Func _WD_GetWebDriverVersion($sInstallDir, $sDriverEXE)
16021602
If $iPID Then
16031603
ProcessWaitClose($iPID)
16041604
Local $sOutput = StdoutRead($iPID)
1605-
Local $aMatches = StringRegExp($sOutput, "\s+([^\s]+)", 1)
1605+
Local $aMatches = StringRegExp($sOutput, "\d+(?:\.\d+){2,}", 1)
16061606
If @error Then
16071607
$iErr = $_WD_ERROR_GeneralError
16081608
$iExt = 2

0 commit comments

Comments
 (0)