Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

bugfix(createFilename): we should trim fingerprint from the end #35

Merged
merged 1 commit into from
Jan 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/injector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function createFilename (filenameTemplate, json) {
value: (match, limit = ':32') => {
const hash = generateFingerprint(json)
limit = hash.length - parseInt(limit.substr(1), 10)
return hash.substr(limit)
return hash.substr(0, limit)
}
}, {
pattern: /\[ext\]/gi,
Expand Down