Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "cb is not a function" error on RTFs #166

Merged
merged 1 commit into from
Jul 27, 2018
Merged

Fix "cb is not a function" error on RTFs #166

merged 1 commit into from
Jul 27, 2018

Conversation

willshiao
Copy link
Contributor

Extraction of RTF files would previously fail with TypeError: "cb is not a function".

This issue was caused by html.extractFromText() accepting an options object between the data and cb parameters (see html.js:38) and rtf.js called it without the options parameter, resulting in cb being set to undefined.

This error was mentioned in #149.

Extraction of RTF files would previously fail with `TypeError`: "cb is not a function".

This issue was caused by `html.extractFromText()` accepting an `options` object between the `data` and `cb` parameters (see [html.js:38](https://github.com/dbashford/textract/blob/416c55bf151c6ebe3cb8286c023e6fa10eaaa6df/lib/extractors/html.js#L38)) and `rtf.js` called it without the `options` parameter, resulting in `cb` being set to `undefined`.
@dbashford dbashford merged commit e333499 into dbashford:master Jul 27, 2018
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.

2 participants