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

gets stuck when I send the character "t------------------------------------t" #739

Closed
manjeet13 opened this issue Apr 2, 2020 · 4 comments

Comments

@manjeet13
Copy link

So I have a chat app that uses compromise for resolving entities internally from user messages. During some testing we found that when we send something like "t------------------------------------t", the library never responds. It is getting stuck somewhere.
I think this has more to do with "-" character because you can replace "t" with any other character or string and it still gets stuck.

Any idea what this could be?

@spencermountain
Copy link
Owner

spencermountain commented Apr 2, 2020

whoa, thank you. This definitely sounds like a regex bug.
Happy to check it out.

@manjeet13
Copy link
Author

I don't know if this helps but this seems to be happening in the latest versions. For now we have switched to an older version of this lib (11.4.0) and it works fine

@spencermountain
Copy link
Owner

hey @manjeet13 I haven't been able to reproduce this, do you know which specific methods you're calling?
https://runkit.com/spencermountain/5e88997e9f7a3c001aa33f14
I tried a couple different versions
thanks!

@manjeet13
Copy link
Author

yeah so this is not happening in the latest version, I think it was some intermediate version we were using previously. I'll close the issue, thanks for super quick response and apologies for getting back so late.

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

No branches or pull requests

2 participants