Skip to content

fix matching asset filenames containing querystring#59

Merged
patrickhulce merged 1 commit into
patrickhulce:masterfrom
ArTiSTiX:fix-regex-filename
Mar 18, 2022
Merged

fix matching asset filenames containing querystring#59
patrickhulce merged 1 commit into
patrickhulce:masterfrom
ArTiSTiX:fix-regex-filename

Conversation

@ArTiSTiX
Copy link
Copy Markdown
Contributor

Fixes #57

Assets can potentially have querystrings, messing up with the FONT_REGEX not detecting fonts.
We allow querystrings in filename, and strip the querystring part anywhere we need to check extension (path package does not handle querystrings).

NOTE: If you have suggestions to improve this, let me know, i did not want to change too much the existing logic, but it's a blocker on my project.

Copy link
Copy Markdown
Owner

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks very much @ArTiSTiX !

Comment thread lib/index.js Outdated
@ArTiSTiX ArTiSTiX force-pushed the fix-regex-filename branch from 0243790 to a9334f7 Compare March 18, 2022 21:26
@patrickhulce patrickhulce merged commit 2d018ba into patrickhulce:master Mar 18, 2022
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.

fontmin-webpack does not recognize font if querystring in output filename

2 participants