rickyah / ini-parser

Read/Write an INI file the easy way!
MIT License
971 stars 241 forks source link

Method IniDataParser.ExtractComment works incorrect when CommentString is more then one char #167

Closed ds1709 closed 6 years ago

ds1709 commented 6 years ago

When CommentString has more then one char, for example "##", commentary string "## Commentary" will be correctly determined as commentary string, but substring "# Commentary" wil be extracted as commentary. After saving commentary text in output file will be "### Commentary".