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 normalization #20

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

Fix path normalization #20

wants to merge 1 commit into from

Conversation

satyaog
Copy link

@satyaog satyaog commented Dec 3, 2021

Prevent corrupting filename in the case the path is contained in a file name

Ex. from current working dir:

DIR/
DIR/prefix_DIR_suffix.ext

DIR/prefix_DIR_suffix.ext would previously be normalize to prefix__suffix.ext since DIR is found in filename. It should instead be normalized to prefix_DIR_suffix.ext.

Prevent corrupting filename in the case the path is contained in a file name
@idlesign
Copy link
Owner

idlesign commented Dec 4, 2021 via email

@idlesign idlesign self-requested a review December 8, 2021 02:40
@idlesign
Copy link
Owner

idlesign commented Dec 8, 2021

Will wait for a test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants