Skip to content

Commit

Permalink
fix: apply - replacement to filename
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jun 26, 2024
1 parent cc557f6 commit d83aa0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 33,7 @@ export function setupPublicAssetStrategy(options: ModuleOptions['assets'] = {})
source.url = source.url.replace(/^\/\//, 'https://')
const file = [
// TODO: investigate why negative ignore pattern below is being ignored
filename(source.url.replace(/\?.*/, '').replace(/^- /, '')),
filename(source.url.replace(/\?.*/, '')).replace(/^- /, ''),
hash(source) (extname(source.url) || formatToExtension(source.format) || ''),
].filter(Boolean).join('-')

Expand Down

0 comments on commit d83aa0d

Please sign in to comment.