sodesu-comment
Version:
Comment system with SolidJS
20 lines (19 loc) • 621 B
TypeScript
/**
* The wordCount module should be lightweight as it's packed into client.
*
* So We just make a simple implement here
*
* Forked from https://github.com/vuepress-theme-hope/vuepress-theme-hope/blob/main/packages/reading-time2/src/node/readingTime.ts
*/
/**
* Extract Latin words from content
*/
export declare const getWords: (content: string) => RegExpMatchArray | null;
/**
* Extract Chinese Characters from content
*/
export declare const getChinese: (content: string) => RegExpMatchArray | null;
/**
* Get word number of given string
*/
export declare const getWordNumber: (content: string) => number;