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

Fix RangeError in markdownNewLine Function for Text Insertion #386

Merged
merged 1 commit into from
Mar 9, 2024

Conversation

Dante291
Copy link
Contributor

@Dante291 Dante291 commented Mar 9, 2024

fixes #381

This bug occurs if there is no selection or cursor position (both start and end are -1 initially) therefore putting a condition fixes this issue

@DonnieBLT DonnieBLT merged commit 1970340 into OWASP-BLT:main Mar 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants