Skip to content

Commit

Permalink
Merge pull request #979 from processprocess/font-path
Browse files Browse the repository at this point in the history
Check if "." before extension in font URL
  • Loading branch information
patrickkettner authored Dec 9, 2020
2 parents 174ddbc + 5c6f5a1 commit a0a3383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cache-url/lib/FontExtensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ const fontExtensions = [
const exports = {
isPathNameAFont: (filePath) => {
return fontExtensions.some((extension) => {
if (filePath.endsWith(extension)) {
if (filePath.endsWith(`.${extension}`)) {
return true;
}
return false;
Expand Down

0 comments on commit a0a3383

Please sign in to comment.