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

Bug fixes: -ext doesn't ever match lowercase extensions, regExExcludes list grows on updates #6

Merged
merged 2 commits into from
Dec 7, 2012

Conversation

ZimFromIRK
Copy link
Contributor

Two bugs that I frequently encounter are fixed.

When the command line is parsed, extensions are converted to uppercase
and placed in a dictionary. However, at comparison time, the actual extension
is not uppercased, so lowercase file extensions never match and are always
output into the Paraffin output file.

I did not check the other exclusion functions to see if they have a similar problem.

Also, the regExExcludes list grows on each update because there is no check to see if an existing RegExExclude is re-specified on the update command line. Other lists are checked, but not this one. This is fixed.

When the command line is parsed, extensions are converted to uppercase
and placed in a dictionary.  However, at comparison time, the extension
is not uppercased, so lowercase extensions never match and are always
output into the Paraffin output file.
When updating an existing fragment fiel, there was no check for an
existing RegExExclude entry, so an update operation would happily add a
duplicate item and the <RegExExclude> list grows on each update.  Added
a check to ensure items in the list are unique.
@JohnWintellect
Copy link
Member

Great catches! Merged and thanks for the patches.

JohnWintellect added a commit that referenced this pull request Dec 7, 2012
Bug fixes: -ext doesn't ever match lowercase extensions, regExExcludes list grows on updates
@JohnWintellect JohnWintellect merged commit b2bb91a into Wintellect:master Dec 7, 2012
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