Skip to content

Fix path normalization#20

Open
satyaog wants to merge 1 commit intoidlesign:masterfrom
satyaog:patch-1
Open

Fix path normalization#20
satyaog wants to merge 1 commit intoidlesign:masterfrom
satyaog:patch-1

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