You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure how to properly set up library to correctly identifier code blocks like (where code is indented)
### Sample Code Review
1. **Variable Naming:**
- **Observation:** The variable `total` is used to store the sum of the prices and their tax. While it is functional, the name could be more descriptive.
- **Suggestion:** Consider renaming `total` to `total_price` to make the variable name more explicit and aligned with its purpose.
**Updated Code:**
```python
total_price = 0
Is there any particular reason why findCompleteCodeBlock and codeBlockLookBack contain regex that ignores spaces before ```?
e.g. would it be useful to modify findCompleteCodeBlock to have
const regex = new RegExp(
`${startEndGroup}.*\n([\\s\\S]*?)\n\\s*${startEndGroup}`,
);
Or am I just missing something here and it will break something else? Actually, GitHub has the same issue with indented code blocks and I am assuming there is a reason for that.
Thank you
The text was updated successfully, but these errors were encountered:
Hello, thank you for the great library!
Not sure how to properly set up library to correctly identifier code blocks like (where code is indented)
Is there any particular reason why
findCompleteCodeBlock
andcodeBlockLookBack
contain regex that ignores spaces before ```?e.g. would it be useful to modify
findCompleteCodeBlock
to haveand codeBlockLookBack
Or am I just missing something here and it will break something else? Actually, GitHub has the same issue with indented code blocks and I am assuming there is a reason for that.
Thank you
The text was updated successfully, but these errors were encountered: