-
Notifications
You must be signed in to change notification settings - Fork 548
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
TypeError: Cannot call method 'replace' of null #27
Comments
Good catch and thanks for reporting this bug! I'd be happy to accept a pull request with a fix for this issue. You don't need to change the 'built' version of the library, just the individual files, in this case just Also, include a simple test to prevent any regressions of this bug in the future, you should add your test to Lastly, it might be a little more idiomatic JavaScript to change your modification to be like the following:
Let me know if you don't feel comfortable with contributing a patch and I'll put together a fix. |
Interesting excercise for a one-line fix :) Thanks for the mini-tutorial too. |
I've pushed a new version, 0.3.2, which includes a fix for this issue. |
Great, thanks! |
I got
TypeError: Cannot call method 'replace' of null
for line 74 inlunr.js
.Just inserting a check for null argument fixes it:
The text was updated successfully, but these errors were encountered: