Update func.ahk
This commit is contained in:
@@ -27,6 +27,7 @@ ini_load(location)
|
|||||||
Loop
|
Loop
|
||||||
{
|
{
|
||||||
Line := temp.ReadLine()
|
Line := temp.ReadLine()
|
||||||
|
if (Line){
|
||||||
RegExMatch(Line, "(?<Section>(?<=\[).*(?=\]))|(?<Key>.*)=(?<Value>.*)", &r) ; Key = r.Key, Value = r.Value, Section = r.Section
|
RegExMatch(Line, "(?<Section>(?<=\[).*(?=\]))|(?<Key>.*)=(?<Value>.*)", &r) ; Key = r.Key, Value = r.Value, Section = r.Section
|
||||||
If (r.Section)
|
If (r.Section)
|
||||||
{
|
{
|
||||||
@@ -42,6 +43,7 @@ ini_load(location)
|
|||||||
out.Set(Trim(r.Key, " `t`r`n"), Trim(r.Value, " `t`r`n")) ; this handles things with no section
|
out.Set(Trim(r.Key, " `t`r`n"), Trim(r.Value, " `t`r`n")) ; this handles things with no section
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} Until (temp.AtEOF)
|
} Until (temp.AtEOF)
|
||||||
temp.Close()
|
temp.Close()
|
||||||
Return out
|
Return out
|
||||||
|
|||||||
Reference in New Issue
Block a user