Skip to content

fix: path include pattern char cause relative path issue#30

Merged
ghillb merged 1 commit intoghillb:mainfrom
AbaoFromCUG:main
Mar 14, 2025
Merged

fix: path include pattern char cause relative path issue#30
ghillb merged 1 commit intoghillb:mainfrom
AbaoFromCUG:main

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