my task at my work is that i remove spaces from a frontend sku search (the one at top and the one after hitting enter). All sku's are formatted like AB 100001234, regexe and so on is ready to go.
If the user enters AB 10 00 01 23 4 magento should use AB 100001234.
Via interceptor i replaced the logic of Magento\Search\Model\QueryFactory->getRawQueryText() But this will affect to much or is this the right place?
Thanks a lot.