mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-05-03 20:13:50 +12:00
fix error
This commit is contained in:
parent
24a2dd02dc
commit
c5dd2fd323
|
@ -83,7 +83,7 @@ export function htmlToText (html, options = {}) {
|
|||
export function htmlWordCount (html) {
|
||||
html = html.replace(/<pre>.*?<\/pre>/g, '') // Ignore codeblocks
|
||||
let text = htmlToText(html)
|
||||
text = text.replace(urlRegexSafe(), '') // Remove urls
|
||||
text = text.replace(urlRegexSafe({ tlds: [] }), '') // Remove urls
|
||||
|
||||
let count = 0
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue