Skip to content

Commit

Permalink
Fixed issues with collecting available AutoIt3 versions
Browse files Browse the repository at this point in the history
relevant for #10
  • Loading branch information
genius257 committed Sep 6, 2022
1 parent 4e0f154 commit 52f5b8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions au3pm.au3
Expand Up @@ -275,8 +275,8 @@ Func fetchAutoIt($reference)
For $j = 0 To UBound($aInnerText)-1 Step +1
$sInnerText &= __HTMLParser_GetString(__doublyLinkedList_Node($aInnerText[$j]).data)
Next
If StringRegExp($sInnerText, "(?i)^autoit") And (Not StringRegExp($sInnerText, "(?i)docs")) And StringRegExp($sInnerText, "(?i)\.zip$") Then
$aVersions[$iCount][0] = StringRegExp($sInnerText, "v(?:[0-9]+\.)?([0-9]+\.[0-9]+\.[0-9]+)", 1)[0]
If StringRegExp($sInnerText, "(?i)^autoit") And (Not StringRegExp($sInnerText, "(?i)(docs|setup)")) And StringRegExp($sInnerText, "(?i)(\.zip|-sfx\.exe)$") Then
$aVersions[$iCount][0] = autoitVerToSemver($sInnerText); StringRegExp($sInnerText, "v(?:[0-9]+\.)?([0-9]+\.[0-9]+\.[0-9]+)", 1)[0]
$aVersions[$iCount][1] = "https://www.autoitscript.com/autoit3/files/archive/autoit/" & _HTMLParser_Element_GetAttribute("href", $versions[$i])
$iCount += 1
EndIf
Expand Down

0 comments on commit 52f5b8d

Please sign in to comment.