-
Notifications
You must be signed in to change notification settings - Fork 92
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
HamlPyExtension filename extension check invalid #114
Comments
Semantically, the function should return true if Then shouldn't it be: def has_any_extension(file_path, extensions):
file_ext = get_file_extension(file_path)
return file_ext and extensions and file_ext in [clean_extension(e) for e in extensions] I'm thinking you intended the second |
a-krebs
added a commit
to a-krebs/HamlPy
that referenced
this issue
Dec 26, 2012
a-krebs
added a commit
to a-krebs/HamlPy
that referenced
this issue
Dec 26, 2012
jessemiller
added a commit
that referenced
this issue
Jan 1, 2013
Fix #114 HamlPyExtension filename extension check invalid
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed the "has_any_extension" function always returns true no matter what extension the files have.
I think it's looking if the extensions in the HAML_FILE_NAME_EXTENSIONS list are in the same list, which always returns true.
Replacing it with this fixes it.
The text was updated successfully, but these errors were encountered: