fus-marcom / franciscan-react

A new website for Franciscan University of Steubenville built with ReactJS.
https://gcp.franciscan.university
MIT License
171 stars 80 forks source link

Issue#152: deletes '-' and 'page' from type in search #153

Closed kwitochka closed 6 years ago

kwitochka commented 6 years ago

I resolved the issue with the RegExp:
{item.type.replace(/-|page/gi, ' ').trim()}

JesseRWeigel commented 6 years ago

Awesome! Thank you @kwitochka