Skip to content

Commit

Permalink
links: allow spaces in aspect-ratio attribute of Iframely <link>
Browse files Browse the repository at this point in the history
  • Loading branch information
iparamonau committed Sep 20, 2024
1 parent 0d5060d commit 2dc7825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/links/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ export default {

if (media) {
CONFIG.MEDIA_ATTRS.forEach(function(ma) {
var re = "(?:^|[^-])\\b" + ma + "\\s*:\\s*([\\d./:]+)(?:px)?\\b";
var re = "(?:^|[^-])\\b" + ma + "\\s*:\\s*([\\d./:\\s]+)(?:px)?\\b";
var m = media.match(re);
if (m) {
link[ma] = m[1];
link[ma] = m[1].replace(/\s/g, '');
}
});
}
Expand Down

0 comments on commit 2dc7825

Please sign in to comment.