Skip to content

Commit

Permalink
Корректирует определение длинного совета
Browse files Browse the repository at this point in the history
  • Loading branch information
vitya-ne committed Sep 4, 2024
1 parent b40c4fa commit db92de3
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 db92de3

Please sign in to comment.