mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Fix #888 - Wrong word count due splitting
This commit is contained in:
committed by
Junyoung Choi
parent
c0a5eb0d2b
commit
2c103aca3d
@@ -511,7 +511,7 @@ class MarkdownNoteDetail extends React.Component {
|
||||
exportAsTxt={this.exportAsTxt}
|
||||
exportAsHtml={this.exportAsHtml}
|
||||
exportAsPdf={this.exportAsPdf}
|
||||
wordCount={note.content.replace(/\r?\n?\s+/g, ' ').trim().split(' ').length}
|
||||
wordCount={note.content.trim().split(/\s+/g).length}
|
||||
letterCount={note.content.replace(/\r?\n/g, '').length}
|
||||
type={note.type}
|
||||
print={this.print}
|
||||
|
||||
Reference in New Issue
Block a user