UCL / frrant

2 stars 0 forks source link

Fix/search ignore angle brackets #301

Closed tcouch closed 2 years ago

tcouch commented 2 years ago

In #297 @rmamarshall pointed out angle brackets are not being ignored in search in the same way that other brackets are. This was due to <> being converted to their html character codes, "\<" and "\>", which were not then picked up by the translate function which strips out other forms of punctuation during the search.

I've added an additional query function to the basic query which uses postgres's regexp_replace method to remove these character codes prior to the rest of the punctuation characters being removed.