Skip to content

Commit

Permalink
Add . before extension
Browse files Browse the repository at this point in the history
  • Loading branch information
processprocess committed Dec 9, 2020
1 parent 3efb641 commit 5c6f5a1
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 5c6f5a1

Please sign in to comment.