Hashmap-Software-Agency/Pyttman

[BUG] Strings with different case from otherwise identical values in lead/trail/exclude are not truncated

Closed this issue · 0 comments

What seems to be the officer, problem?
Using the EntityParser to identify values in messages causes unwanted words which is a part of the routing, to end up in the entity body.

The issue here is that foo can be provided in the lead tuple, but as a user would type Foo - note, the capitalized F - the whole word, and the one trailing it, ends up in the entity.

Expected behavior
Since these words are the same when disregarding case, they should be truncated from the message.

Screenshots
image

Which Pyttman version?
[e.g 1.1.9]