Skip to content

Commit

Permalink
Strip leading "." from versioned file name
Browse files Browse the repository at this point in the history
splitext() will return the version as ".HASH", so the leading period needs to be stripped.
  • Loading branch information
edevil committed Feb 21, 2018
1 parent d396cbf commit c14987a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_assets/manifest.py
Expand Up @@ -37,7 +37,7 @@ def query(self, bundle, ctx):
if output:
# foo.hash.js
name_with_hash, ext = os.path.splitext(output)
output = os.path.splitext(name_with_hash)[1]
output = os.path.splitext(name_with_hash)[1].strip('.')

return output

Expand Down

0 comments on commit c14987a

Please sign in to comment.