michael-lynch/reading-time

Support Chinese

liqianggh opened this issue · 0 comments

use the regular expression of JavaScript to process the text

1.count the number of Chinese characters;
2.replace the Chinese and special characters with space;
3.split text by spaces to define total words.