We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0a5eb0 commit 2c103acCopy full SHA for 2c103ac
browser/main/Detail/MarkdownNoteDetail.js
@@ -511,7 +511,7 @@ class MarkdownNoteDetail extends React.Component {
511
exportAsTxt={this.exportAsTxt}
512
exportAsHtml={this.exportAsHtml}
513
exportAsPdf={this.exportAsPdf}
514
- wordCount={note.content.replace(/\r?\n?\s+/g, ' ').trim().split(' ').length}
+ wordCount={note.content.trim().split(/\s+/g).length}
515
letterCount={note.content.replace(/\r?\n/g, '').length}
516
type={note.type}
517
print={this.print}
0 commit comments