TAMULib / SAGE

Search Aggregation Engine
MIT License
6 stars 1 forks source link

Bold Match Filter, returning an empty bold markup. #519

Open kaladay opened 1 year ago

kaladay commented 1 year ago

Describe the bug The Bold Match Filter fails to perform sanity checks and returns an empty bold markup.

To Reproduce Steps to reproduce the behavior:

  1. Look at the unit test, there is a comment there.
  2. Look at the code and see that it generates empty bold markup.

Expected behavior If the text is empty or invalid, just return an empty string rather than a bold around nothing.