Skip to content

Commit

Permalink
Корректирует определение длинного совета (#1303)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitya-ne authored Sep 12, 2024
1 parent 7db9ff7 commit 77dd845
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/doc.11tydata.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ module.exports = {
const formattedPractices = await Promise.all(
filteredPractices.map(async (p) => {
const practice = await p.template.inputContent
p['isLong'] = practice.split('\n').length > 2

p['isLong'] = practice.split('\n').filter((s) => s.length && s !== '\r').length > 2
return p
}),
)
Expand Down

0 comments on commit 77dd845

Please sign in to comment.