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

Regex too greedy and broke todo list links #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

markmarijnissen
Copy link

When I have

- [ ] [hello world](./hello-world.md)

The regex would match ] [hello world and destroy the todo list.

Before: https://regex101.com/r/z3rvU2/1
After: https://regex101.com/r/6Xk8jq/1

Note - I haven't extensively tested this yet!

When I have 
```
- [ ] [hello world](./hello-world.md)
```

The regex would match ` ] [hello world` and destroy the todo list.

Before: https://regex101.com/r/z3rvU2/1
After: https://regex101.com/r/6Xk8jq/1

Note - I haven't extensively tested this yet!
@markmarijnissen markmarijnissen changed the title Regex too greedy and broke todolist items with links Regex too greedy and broke todo list links Sep 14, 2022
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.

1 participant