sbd icon indicating copy to clipboard operation
sbd copied to clipboard

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

Open Hyperion101010 opened this issue 4 years ago • 1 comments

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 avatar Oct 18 '21 13:10 Hyperion101010

Screenshot 2021-10-18 at 6 29 05 PM

Hyperion101010 avatar Oct 18 '21 13:10 Hyperion101010