Skip to content

Commit 77dd845

Browse files
authored
Корректирует определение длинного совета (#1303)
1 parent 7db9ff7 commit 77dd845

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/views/doc.11tydata.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ module.exports = {
151151
const formattedPractices = await Promise.all(
152152
filteredPractices.map(async (p) => {
153153
const practice = await p.template.inputContent
154-
p['isLong'] = practice.split('\n').length > 2
154+
155+
p['isLong'] = practice.split('\n').filter((s) => s.length && s !== '\r').length > 2
155156
return p
156157
}),
157158
)

0 commit comments

Comments
 (0)