Skip to content

Prevent returning NaN from Readability methods - #3

Open
daporter wants to merge 1 commit into
dbalatero:masterfrom
daporter:prevent-returning-nan
Open

Prevent returning NaN from Readability methods#3
daporter wants to merge 1 commit into
dbalatero:masterfrom
daporter:prevent-returning-nan

Conversation

@daporter

Copy link
Copy Markdown

When the text to be analysed has zero length, some of the Readability methods return NaN. In that situation it seems better to return 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant