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

Modules to review #57

Open
renoirb opened this issue Oct 13, 2024 · 0 comments
Open

Modules to review #57

renoirb opened this issue Oct 13, 2024 · 0 comments

Comments

@renoirb
Copy link
Owner

renoirb commented Oct 13, 2024

  1. check for broken links

    const regEscapedLink = link.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&')
    const VueLinkRegExp = new RegExp(`(['"])${regEscapedLink}(['"])`)
    // need to match links like [About Us](/about-us)
    const MdLinkRegExp = new RegExp(`\\[.*\\]\\((${regEscapedLink})\\)`)
    // split the file into lines
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

No branches or pull requests

1 participant