danielcovington/VbScript-Ini-File-Reader — pull request #4 by KyleChamberlin (2014-08-22 14:05:34+00:00)
Title: Tidy

mostly just cleaned up the formatting.

I really like this idea, but I am confused by a portion of the `parseSections()` function.

```vb
If objRegex.Test(FileAsString) Then
Debug.WriteLine FileAsString

If objSettingsDictionary.Exists(replace(replace(FileAsString,"[",""),"]","")) = 0 then
objSettingsDictionary.Add replace(replace(FileAsString,"[",""),"]",""),CreateObject("scripting.dictionary")
CurrentSetting = replace(replace(FileAsString,"[",""),"]","")
Debug.WriteLine FileAsString
End if
Else
objRegex.Pattern = "^(?!;).*?="
Set colMatches = objRegex.execute(FileAsString)

For Each match In colMatches
If objSettingsDictionary.Exists(CurrentSetting) Then
Set UGH = objSettingsDictionary.Item(CurrentSetting)

If UGH.Exists(Replace(match.value,"=","")) = 0 Then
UGH.Add Replace(match.value,"=",""),objRegex.replace(FileAsString,"")
End If
End If
Next
End If
```

the `UGH` variable, does that hold the settings under the section `CurretnSetting` in which case `CurrentSetting` should be `CurrentSection` or maybe `CurrentHeading`?