Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed Sep 19, 2024
2 parents 5f768db + 0d5060d commit 48e5535
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/plugins/system/oembed/providers.json
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@
}, {
"name": "Figma",
"templates": [
"(?:[\\w\\.-]+\\.)?figma.com/(file|proto|design|board)/.*"
"(?:[\\w\\.-]+\\.)?figma.com/(board|slides|deck|design|proto|file)/.*"
],
"endpoint": "https://www.figma.com/api/oembed"
}, {
Expand Down
2 changes: 1 addition & 1 deletion plugins/meta/description-from-p-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
var description;
cheerio("body p").each(function() {
var $p = cheerio(this);
if ($p.children("label, input, button, div").length === 0 && !$p.parents("noscript, header,#header,[role='banner']").length) {
if ($p.children("label, input, button, div, script, span").length === 0 && !$p.parents("noscript, header,#header,[role='banner']").length) {
var someText = decodeHTML5(decode($p.text()));
var requiredLimit = Number.isInteger(__allowPTagDescription) ? __allowPTagDescription : 64;
if (someText.length > requiredLimit) {
Expand Down

0 comments on commit 48e5535

Please sign in to comment.