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

Detect source path even when flanked by slashes #4

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

rycoll
Copy link
Contributor

@rycoll rycoll commented Sep 11, 2024

getSourcePath is supposed to remove the configured source path from collection item paths.

This doesn't work if the configured source starts with a slash - we assume the source has no leading/trailing slashes. We should handle this to prevent surprising results.

@rphillips-cc rphillips-cc merged commit 336addc into main Sep 12, 2024
@rphillips-cc rphillips-cc deleted the handle-slashes-in-src branch September 12, 2024 00:00
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