jncramp / iniparse

Automatically exported from code.google.com/p/iniparse
Other
0 stars 0 forks source link

Options in inifile with name beginning with REM are skipped #28

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The RegExp for Class CommentLine should test for a space after REM.
If not, an option like Remote_dir is interpreted as a comment.

regexp like 
regex = re.compile(r'^(?P<csep>[;#]|[rR][eE][mM] +)'
                       r'(?P<comment>.*)$')

(" +'" added)
should work.

Original issue reported on code.google.com by hubert.t...@gmail.com on 22 Feb 2012 at 2:24

GoogleCodeExporter commented 8 years ago
Yup, you're right.  Thanks for the bug report.
I will apply the fix.

Original comment by psobe...@gmail.com on 28 Feb 2012 at 3:37