search: Fix reading default search pattern type from settings
Created by: fkling
Fixes #32989 (closed)
Test plan
- Added unit test
- Change default pattern type to
"regexp"
in your users settings and go to the search page. The regular expression button is selected by default.