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: path include pattern char cause relative path issue #30

Merged
merged 1 commit into from
Mar 14, 2025

Conversation

AbaoFromCUG
Copy link
Contributor

Use plenary.path's make_relative instead of string.gsub, because which will cause issue when path include pattern char. e.g.:
:lua =string.gsub("/foo-bar/src/index", "/foo-bar", "")

@ghillb
Copy link
Owner

ghillb commented Mar 14, 2025

Thank you for the contribution.

@ghillb ghillb merged commit 5767125 into ghillb:main Mar 14, 2025
1 check failed
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