Encyclopedia blurb logic has RegEx with unescaped user input
Sentry Issue: GALILEO-SEARCH-1J
RegexpError: end pattern with unmatched parenthesis: /^chad johnson ( its good to be chad(e?s)? \(.+\)$/
app/bento/eds_api/bento_request_encyclopedia.rb:33:in `near_exact_match?'
return true if title =~ /^#{query_terms}(e?s)? \(.+\)$/
app/bento/eds_api/bento_result_record_encyclopedia.rb:41:in `near_exact_match?'
request.near_exact_match?(record.title, request.search_terms)
app/bento/eds_api/bento_result_record_encyclopedia.rb:45:in `blurb_candidate?'
BLURB_COMPATIBLE_DBS.include?(record.eds_database_name) && near_exact_match?
app/bento/eds_api/bento_result_record_encyclopedia.rb:49:in `show_blurb?'
!expanded_view? && blurb_candidate? && first_result?
app/bento/eds_api/bento_result_record_encyclopedia.rb:31:in `display_description'
show_blurb? ? nil : super
...
(143 additional frame(s) were not displayed)
ActionView::Template::Error: end pattern with unmatched parenthesis: /^chad johnson ( its good to be chad(e?s)? \(.+\)$/