{"action":"opened","issue":{"url":"https://api.github.com/repos/ikkez/f3-cortex/issues/5","labels_url":"https://api.github.com/repos/ikkez/f3-cortex/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/ikkez/f3-cortex/issues/5/comments","events_url":"https://api.github.com/repos/ikkez/f3-cortex/issues/5/events","html_url":"https://github.com/ikkez/f3-cortex/issues/5","id":106216018,"number":5,"title":"JIG implementation of LIKE operator is case-sensitive","user":{"login":"intermike","id":10540148,"avatar_url":"https://avatars.githubusercontent.com/u/10540148?v=3","gravatar_id":"","url":"https://api.github.com/users/intermike","html_url":"https://github.com/intermike","followers_url":"https://api.github.com/users/intermike/followers","following_url":"https://api.github.com/users/intermike/following{/other_user}","gists_url":"https://api.github.com/users/intermike/gists{/gist_id}","starred_url":"https://api.github.com/users/intermike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intermike/subscriptions","organizations_url":"https://api.github.com/users/intermike/orgs","repos_url":"https://api.github.com/users/intermike/repos","events_url":"https://api.github.com/users/intermike/events{/privacy}","received_events_url":"https://api.github.com/users/intermike/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-13T13:04:13Z","updated_at":"2015-09-13T13:04:13Z","closed_at":null,"body":"Greetings.\r\n\r\nLIKE operator in filter is not case-sensitive according documentation.\r\n\r\nBut in JIG mapper it is case-sensitive.\r\n\r\nI propose to add preg modifier `i` in function `_likeValueToRegEx`.\r\n\r\n```PHP\r\n\tprotected function _likeValueToRegEx($var)\r\n\t{\r\n\t\t$lC = substr($var, -1, 1);\r\n\t\t// %var% -> /var/\r\n\t\tif ($var[0] == '%' && $lC == '%')\r\n\t\t\t$var = '/'.substr($var, 1, -1).'/i';\r\n\t\t// var%  -> /^var/\r\n\t\telseif ($lC == '%')\r\n\t\t\t$var = '/^'.substr($var, 0, -1).'/i';\r\n\t\t// %var  -> /var$/\r\n\t\telseif ($var[0] == '%')\r\n\t\t\t$var = '/'.substr($var, 1).'$/i';\r\n\t\treturn $var;\r\n\t}\r\n```\r\n\r\nThanks."}}