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

Update code parser regex pattern to handle empty code blocks with no whitespace #167

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

dan-kur
Copy link
Contributor

@dan-kur dan-kur commented Sep 25, 2024

PR includes:

  • updating CodeParser._get_pattern to make newline character optional before closing of code block
  • adding 2 unit tests in test_code_parser.py to test parsing of empty code blocks with and without whitespace

@dan-kur dan-kur merged commit 8df1799 into main Sep 26, 2024
4 checks passed
@dan-kur dan-kur deleted the update-codeparser-pattern branch September 26, 2024 13:28
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