Skip to content

Commit

Permalink
fix: invalid image parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
danieIabel committed Apr 24, 2023
1 parent 6e68417 commit 6298793
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/js/feeds.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var Feeds = (function () {
'use strict';

// Regex to get the image size
const REG_EXP = /s\d{2}(-w\d{3}-h\d{3})?-c?(-n)/;
const REG_EXP = /s\d{2}(-w\d{3}-h\d{3})?(?:-c(?:-n)?)/;

// Get the first image from the content
function getFirstImage(code) {
Expand Down
2 changes: 1 addition & 1 deletion dist/js/feeds.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6298793

Please sign in to comment.