Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for inline comments in regex #238

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

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.

2 participants