-
Notifications
You must be signed in to change notification settings - Fork 39
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: "Cannot call method IndexOf of undefined" in tag() with a dash. #1
Comments
Weirdly it seems like it's the word |
Oh. At one point in the code it does a word lookup:
But if the word is "constructor" it grabs |
Fixes issue #1, where tagging of a string with the word "constructor" in it causes an error. We now check to see if the word is `undefined` *or* if it's a function from up the prototype chain.
Okay, I've pushed a fix and updated the npm package to |
I'm lexing and tagging a sentence like
"Android - constructor"
. It's failing with an error:It would be awesome if it would just skip over it.
The text was updated successfully, but these errors were encountered: