{"action":"created","issue":{"url":"https://api.github.com/repos/devbridge/jQuery-Autocomplete/issues/712","repository_url":"https://api.github.com/repos/devbridge/jQuery-Autocomplete","labels_url":"https://api.github.com/repos/devbridge/jQuery-Autocomplete/issues/712/labels{/name}","comments_url":"https://api.github.com/repos/devbridge/jQuery-Autocomplete/issues/712/comments","events_url":"https://api.github.com/repos/devbridge/jQuery-Autocomplete/issues/712/events","html_url":"https://github.com/devbridge/jQuery-Autocomplete/issues/712","id":323830747,"number":712,"title":"Traying tu use get the Letters with accents matched","user":{"login":"d00nn1","id":11490224,"avatar_url":"https://avatars0.githubusercontent.com/u/11490224?v=4","gravatar_id":"","url":"https://api.github.com/users/d00nn1","html_url":"https://github.com/d00nn1","followers_url":"https://api.github.com/users/d00nn1/followers","following_url":"https://api.github.com/users/d00nn1/following{/other_user}","gists_url":"https://api.github.com/users/d00nn1/gists{/gist_id}","starred_url":"https://api.github.com/users/d00nn1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d00nn1/subscriptions","organizations_url":"https://api.github.com/users/d00nn1/orgs","repos_url":"https://api.github.com/users/d00nn1/repos","events_url":"https://api.github.com/users/d00nn1/events{/privacy}","received_events_url":"https://api.github.com/users/d00nn1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-17T00:19:05Z","updated_at":"2018-05-17T13:13:32Z","closed_at":"2018-05-17T13:13:32Z","author_association":"NONE","body":"hello all together  first thets the best thing thets i whery long time see and work great i use this codes .\r\ni tray to use e like ë and somthinh another things but thet show me this error and sugest don't work \r\n(sory my english is not so good )\r\ni'm sorry i add all my code if we solve that, maybe helpe this someone else\r\n\r\n\r\n\r\nUncaught ReferenceError: _autocompleteCompleted is not defined\r\n\r\n              jQuery(function ($) {\r\n                  'use strict';\r\n                  var countriesArray = $.map(countries, function (value, key) { return { value: value, data: key }; });\r\n                  // Initialize ajax autocomplete:\r\n                  $('#autocomplete-ajax').autocomplete({\r\n                      // serviceUrl: '/autosuggest/service/url',\r\n                      lookup: countriesArray,\r\n                      lookupFilter: function(suggestion, originalQuery, queryLowerCase) {\r\n                          var re = new RegExp('\\\\b' + $.Autocomplete.utils.escapeRegExChars(queryLowerCase), 'gi');\r\n                          return re.test(suggestion.value);\r\n                      },\r\n                      onSelect: function(suggestion) {\r\n                          $('#selction-ajax').html('You selected: ' + suggestion.value + ', ' + suggestion.data);\r\n                      },\r\n                      onHint: function (hint) {\r\n                          $('#autocomplete-ajax-x').val(hint);\r\n                      },\r\n                      onInvalidateSelection: function() {\r\n                          $('#selction-ajax').html('You selected: none');\r\n\r\n                      }\r\n                  });\r\n\r\n              var formatRegexp = function(q) {\r\n                  q = q.replace(/e/i,'[eéèêëEÉÈÊË]');\r\n                  q = q.replace(/a/i,'[aàâäAÀÁÂÃÄÅÆ]');\r\n                  q = q.replace(/c/i,'[cçC]');\r\n                  q = q.replace(/i/i,'[iïîIÌÍÎÏ]');\r\n                  q = q.replace(/o/i,'[oôöÒÓÔÕÖ]');\r\n                  q = q.replace(/u/i,'[uüûUÜÛÙÚ]');\r\n                  q = q.replace(/y/i,'[yYÿ^yÝ]');\r\n                  return q;\r\n              }\r\n\r\n              var _autocompleteLookup = function (suggestion, originalQuery, queryLowerCase) {\r\n                      var pattern = '(\\\\b|^)('+$.Autocomplete.utils.escapeRegExChars(queryLowerCase)+')';\r\n                      pattern = _formatRegexp(pattern);\r\n                      var matcher = new RegExp(pattern);\r\n                      var ret = suggestion.value.toLowerCase().match(matcher);\r\n                      return ret;\r\n              };\r\n\r\n              var _autocompleteFormatResult = function (suggestion, currentValue) {\r\n                      var pattern = '(\\\\b|^)('+$.Autocomplete.utils.escapeRegExChars(currentValue)+')';\r\n                      pattern = _formatRegexp(pattern);\r\n                      return suggestion.value.replace(new RegExp(pattern, 'gi'), '<strong>$1$2<\\/strong>');\r\n              };\r\n\r\n    \r\n                  // Initialize autocomplete with custom appendTo:\r\n                  $('#autocomplete-custom-append').autocomplete({\r\n\t                 minChars: 1,\r\n                         lookupLimit: 8,\r\n                      lookup: countriesArray,\r\n              noSuggestionNotice: 'Sorry, no matching results',\r\n                      appendTo: '#suggestions-container',\r\n                          onSelect:_autocompleteCompleted.bind(el),*****ERROR SHOW AT THIS POINT****\r\n                          lookupFilter: _autocompleteLookup,\r\n                          formatResult: _autocompleteFormatResult\r\n\r\n                  });\r\n\r\n\r\n\r\n\r\n              });"},"comment":{"url":"https://api.github.com/repos/devbridge/jQuery-Autocomplete/issues/comments/389861532","html_url":"https://github.com/devbridge/jQuery-Autocomplete/issues/712#issuecomment-389861532","issue_url":"https://api.github.com/repos/devbridge/jQuery-Autocomplete/issues/712","id":389861532,"user":{"login":"tkirda","id":282935,"avatar_url":"https://avatars2.githubusercontent.com/u/282935?v=4","gravatar_id":"","url":"https://api.github.com/users/tkirda","html_url":"https://github.com/tkirda","followers_url":"https://api.github.com/users/tkirda/followers","following_url":"https://api.github.com/users/tkirda/following{/other_user}","gists_url":"https://api.github.com/users/tkirda/gists{/gist_id}","starred_url":"https://api.github.com/users/tkirda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkirda/subscriptions","organizations_url":"https://api.github.com/users/tkirda/orgs","repos_url":"https://api.github.com/users/tkirda/repos","events_url":"https://api.github.com/users/tkirda/events{/privacy}","received_events_url":"https://api.github.com/users/tkirda/received_events","type":"User","site_admin":false},"created_at":"2018-05-17T13:13:32Z","updated_at":"2018-05-17T13:13:32Z","author_association":"MEMBER","body":"Browser is right. `_autocompleteCompleted` is not defined anywhere. You missed something in your setup.\r\n\r\nAlso check lodash  [_.deburr](https://lodash.com/docs/4.17.10#deburr) function for replacing accented letters:"}}
{"actor":{"display_login":"tkirda"}}