isaacs/ini — pull request #10 by kylegetson (2012-11-03 21:41:50+00:00)
Title: php style array syntax in keys

PHP's parse_ini_file() allows ini files to have array-like syntax. Having square brackets in the key of an ini file causes unexpected results with ini.js as it stands today. I've updated it to allow for this syntax to function for both encoding and decoding an ini file.

example:
MyFavoriteColor[] = green
MyFavoriteColor[] = blue
MyFavoriteColor[] = yellow

The expected results would be an array with 3 values.

I've also added this to the tests in foo.js. This still passes all tests, and seems to work well.