{"action":"opened","issue":{"url":"https://api.github.com/repos/angular-ui/ui-grid/issues/4781","labels_url":"https://api.github.com/repos/angular-ui/ui-grid/issues/4781/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-grid/issues/4781/comments","events_url":"https://api.github.com/repos/angular-ui/ui-grid/issues/4781/events","html_url":"https://github.com/angular-ui/ui-grid/issues/4781","id":119258609,"number":4781,"title":"Custom filter with function and wildcard","user":{"login":"adrienbonnaire","id":15434550,"avatar_url":"https://avatars.githubusercontent.com/u/15434550?v=3","gravatar_id":"","url":"https://api.github.com/users/adrienbonnaire","html_url":"https://github.com/adrienbonnaire","followers_url":"https://api.github.com/users/adrienbonnaire/followers","following_url":"https://api.github.com/users/adrienbonnaire/following{/other_user}","gists_url":"https://api.github.com/users/adrienbonnaire/gists{/gist_id}","starred_url":"https://api.github.com/users/adrienbonnaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrienbonnaire/subscriptions","organizations_url":"https://api.github.com/users/adrienbonnaire/orgs","repos_url":"https://api.github.com/users/adrienbonnaire/repos","events_url":"https://api.github.com/users/adrienbonnaire/events{/privacy}","received_events_url":"https://api.github.com/users/adrienbonnaire/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-27T23:58:36Z","updated_at":"2015-11-27T23:58:36Z","closed_at":null,"body":"I want to add a custom filter with a special behavior. My problem is that i want do a search with exact search but when i write * with a text, i want to find all text that end by my text and when i write text with * at the end i whant to find all text that start by my text.\r\nI write this as it is describe in the documentation : \r\nelement.filter = {\r\n    condition: function(searchTerm, cellValue) {\r\n    ...\r\n    }\r\n}\r\nThe problem is that the searchTerm variable pass to the function is cleaned and hasn't the * and in my condition function i can't detect if a * wildcard is writed.\r\nHow to implement this ?"}}