Skip to content

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

@Hyperion101010

Description

@Hyperion101010

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions