Fixed flatten-select search handler

replaced .contains (ff) method with standard .match() string method.