-
Notifications
You must be signed in to change notification settings - Fork 3
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
Error on every word with only one replacement #4
Comments
Getting this error also |
Got this error as well |
kostasx
added a commit
to kostasx/retext-usage
that referenced
this issue
Jan 2, 2018
[Fixing TypeError: quotation(...).join is not a function. ](adamhollett#4)
Forked the repo and made a fix. @adamhollett let me know if I should PR. |
@kostasx Feel free to PR, I'd appreciate that. To be honest I don't use retext much any more so this package hasn't had much attention. |
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In your index.json, many words have a string value for
replace
instead of an array. Each one of these words gives me an error when you call.join
on the replacement here: https://github.com/admhlt/retext-usage/blob/master/index.js#L62giving:
TypeError: quotation(...).join is not a function
.Could you either rework this condition so it only calls join on an array, or wrap every
replace
in an array, even if it's just one?The text was updated successfully, but these errors were encountered: