isl / NormalizerMagic

0 stars 0 forks source link

Some filters are not working with elements in upper case #1

Closed ymark closed 3 years ago

ymark commented 4 years ago

If there are elements with characters in upper case, it seems that some of functions are not working at all. For example, having an input with the following part

<sample__unique_ID>some text to clean, goes here</sample__unique_ID>

and the function Replace , with . from sample__unique_ID

does not do anything.

If the characters of the element are all in lower case (e.g. sample__unique_id) then it works as expected

ymark commented 3 years ago

The reason for this is that elements were all converted to lowercase before checking the rules. I've updated this (for all rules) and now the elements are checked without ignoring their case.