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

FlxAssetPaths: fix filterExtensions for files with multiple dots #2107

Merged
merged 3 commits into from Sep 10, 2017
Merged

FlxAssetPaths: fix filterExtensions for files with multiple dots #2107

merged 3 commits into from Sep 10, 2017

Conversation

6J7KZg2f
Copy link
Contributor

@6J7KZg2f 6J7KZg2f commented Sep 7, 2017

Currently, getFileReferences filtered extensions using the first string after a dot. This means that myfile.png.old is included even when a filter is set to only import png files. This causes various compiler errors when tortoisesvn is used, due to duplicate file.ext.svn-base files being added.

New implementation takes the last string after a dot, meaning that myfile.png.old is treated as a .old file and will not be included if "old" is not on the filter list.

Previously getFileReferences filtered extensions using the first string after a dot. This means that myfile.png.old is included even when a filter is set to only import png files. This causes various compiler errors when tortoisesvn is used, due to duplicate file.ext.svn-base files being added. 

New implementation takes the *last* string after a dot, meaning that myfile.png.old is treated as a .old file and will not be included if "old" is not on the filter list.
@Gama11 Gama11 added the Bug label Sep 7, 2017
@Gama11 Gama11 changed the title FlxAssetPaths.getFileReferences() bug/edge case fix FlxAssetPaths: fix filterExtensions for files with multiple dots Sep 10, 2017
@Gama11 Gama11 merged commit bb42acc into HaxeFlixel:dev Sep 10, 2017
Gama11 added a commit that referenced this pull request Sep 10, 2017
@Gama11
Copy link
Member

Gama11 commented Sep 10, 2017

Thanks! I added a unit test for this fix here: 29a545d

jgranick pushed a commit to jgranick/flixel that referenced this pull request Jan 31, 2018
…eFlixel#2107)

Previously getFileReferences filtered extensions using the first string after a dot. This means that myfile.png.old is included even when a filter is set to only import png files. This causes various compiler errors when tortoisesvn is used, due to duplicate file.ext.svn-base files being added. 

New implementation takes the *last* string after a dot, meaning that myfile.png.old is treated as a .old file and will not be included if "old" is not on the filter list.
jgranick pushed a commit to jgranick/flixel that referenced this pull request Jan 31, 2018
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.

None yet

2 participants