How to ignore case in highlight() function?

how to ignore case in highlight() function?

Joao S. wrote:

how to ignore case in highlight() function?

Rails uses /i on when creating the Regexp for matching in the highlight
method, this makes the regular expression ignore case. So it seems it
already behaves as you want.

Best,
Michael G.