This check is not case-sensitive and ignores diacritics (accents).
text_a
ends with
text_b
"Text contains subtext" ends with "contains"
=> false
"Text contains subtext" ends with "tëXT"
=> true
"Text contains subtext" ends with unknowntext
=> true
unknowntext ends with unknowntext
=> true
unknowntext ends with "some text"
=> false