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

Text with < sign fail to get detected, edge case. #36

Open
Hyperion101010 opened this issue Oct 18, 2021 · 1 comment
Open

Text with < sign fail to get detected, edge case. #36

Hyperion101010 opened this issue Oct 18, 2021 · 1 comment

Comments

@Hyperion101010
Copy link

Hyperion101010 commented Oct 18, 2021

Hi, @Tessmore
First of all your library is quite helpful, nice work.

I was working with this code and got some unexpected results.

code:

const sbd = require('sbd');

const ans = '<birthday**%^today )'

const ann = sbd.sentences(ans, {sanitize: true});

console.log(ann);

console.log('answer should be: ', 'birthday**%^today')``

So as expected we should have got something like &lt;&gt;birthday**%^today but when I run this I am getting an empty list.
Denoting it lost the next words in parsing.

Any ideas about this?

@Hyperion101010
Copy link
Author

Screenshot 2021-10-18 at 6 29 05 PM

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

No branches or pull requests

1 participant