Upgrade to AHK v2 #3

Open
david wants to merge 35 commits from tier2 into master
Showing only changes of commit 0fb614940f - Show all commits
+2 -3
View File
@@ -102,9 +102,8 @@ ini_write(location, inKey, inValue) ; Don't need to specify section because you
file := FileOpen(location, "r") file := FileOpen(location, "r")
temp := file.Read() temp := file.Read()
file.Close() file.Close()
inKey := "(?<=" inKey "=)\S*" ; Regex to make sure we're matching only the value for the requested key inKeyReg := "(?<=^" inKey "=)\S*" ; Regex to make sure we're matching only the value for the requested key
temp := RegExReplace(temp, inKey, inValue) temp := RegExReplace(temp, inKeyReg, inValue)
; msgbox, % temp "`n`nRegex:`t" inKey "`nReplacing match with:`t" inValue
file := FileOpen(location, "w") file := FileOpen(location, "w")
file.Write(temp) file.Write(temp)
file.Close() file.Close()