{"action":"opened","issue":{"url":"https://api.github.com/repos/exocad/exoAlphaFS/issues/1","repository_url":"https://api.github.com/repos/exocad/exoAlphaFS","labels_url":"https://api.github.com/repos/exocad/exoAlphaFS/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/exocad/exoAlphaFS/issues/1/comments","events_url":"https://api.github.com/repos/exocad/exoAlphaFS/issues/1/events","html_url":"https://github.com/exocad/exoAlphaFS/issues/1","id":140912574,"number":1,"title":"exocad: conversion of wildcard to regexp is broken","user":{"login":"eaexo","id":17764165,"avatar_url":"https://avatars.githubusercontent.com/u/17764165?v=3","gravatar_id":"","url":"https://api.github.com/users/eaexo","html_url":"https://github.com/eaexo","followers_url":"https://api.github.com/users/eaexo/followers","following_url":"https://api.github.com/users/eaexo/following{/other_user}","gists_url":"https://api.github.com/users/eaexo/gists{/gist_id}","starred_url":"https://api.github.com/users/eaexo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eaexo/subscriptions","organizations_url":"https://api.github.com/users/eaexo/orgs","repos_url":"https://api.github.com/users/eaexo/repos","events_url":"https://api.github.com/users/eaexo/events{/privacy}","received_events_url":"https://api.github.com/users/eaexo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-15T08:59:52Z","updated_at":"2016-03-15T08:59:52Z","closed_at":null,"body":"Generation of search pattern in FindFileSystemEntryInfo is incorrect:\r\n`\"^\" + Regex.Escape(_searchPattern).Replace(@\"\\.\", \".\").Replace(@\"\\*\", \".*\").Replace(@\"\\?\", \".?\") + \"$\"`\r\n\r\ncorrect one is \r\n`String.Format(\"^{0}$\", Regex.Escape(part).Replace(\"\\\\*\", \".*\").Replace(\"\\\\?\", \".\"))`\r\nImportandt is that:\r\n-  \\. is not replaced by . as it produces for \"test.txt\" the regular expression ^test.txt$ which also matches testatxt.\r\n-  \\? is replaced with . as ? as wildcard matches exactly one characted, see https://en.wikipedia.org/wiki/Wildcard_character. Where as .? matches 0 or 1 characters. Hense wildcard a?a would become a.?a and would match aa and aba where the correct match would be only aba\r\n\r\n"}}