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

awesome-list-item Fix for "Bug with selection of link to validate" - Fixes #199 #201

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

Conversation

sancarn
Copy link

@sancarn sancarn commented Aug 26, 2024

Fix for #199

The previous algorithm solved for pattern: [^{link}{linkReference}]* ({link}|{linkReference}) [^{link}]* " - " {description}

The new algorithm solves for pattern: {any}* ({link}|{linkReference}) [^{link}]* " - " {description}?

It does this by finding a text node starting with -. This node and those after are the description, and nodes before are searched backwards to find a valid {link} or {linkReference}. This will be the checked link.

References

Links to #199

Issue identified in sancarn/awesome-vba#12

Related PR: #185

Copy link

@lamorrisc lamorrisc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank u

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