biggora/bootstrap-ajax-typeahead — pull request #5 by gotik (2013-06-25 15:04:59+00:00)
Title: $.trim search value

When you type white spaces ajaxSource executes the request, trim the val fix the problem

var query = $.trim(this.$element.val())