Skip to content

Conversation

@ValeraSin
Copy link

Add support for inline comments in regex
Change _handle_comment to support new regex

  • src/configobj/init.py

Change _handle_comment to support new regex

- src/configobj/__init__.py
Copy link
Collaborator

@jelmer jelmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add some tests for the new behaviour?

 - Removed ConfigObjPHP class.
 - Expanded test cases for handling inline comments with both # and ; markers.
 - Adjusted assertions to include multiple comment styles (hashtag and semicolon).
@ValeraSin
Copy link
Author

Yes, tests for the new behavior have already been added. The test cases now include handling of both # and ; inline comment markers, as well as validation of multiple comment styles in configuration sections.

@jelmer
Copy link
Collaborator

jelmer commented Sep 18, 2024

Thanks, I'll take a look at this as soon as we get another release out.

@gene1wood
Copy link
Contributor

If #262 is merged, this PR may need some tweaks in _handle_comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants