1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Merge pull request #890 from asmsuechan/iss-888

iss #888 Fix letter count
This commit is contained in:
Kazu Yokomizo
2017-09-23 11:43:09 +09:00
committed by GitHub

View File

@@ -355,7 +355,7 @@ class MarkdownNoteDetail extends React.Component {
exportAsMd={this.exportAsMd}
exportAsTxt={this.exportAsTxt}
wordCount={note.content.split(' ').length}
letterCount={note.content.length}
letterCount={note.content.replace(/\r?\n/g, '').length}
type={note.type}
/>
</div>