{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/1953","labels_url":"https://api.github.com/repos/syncthing/syncthing/issues/1953/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/1953/comments","events_url":"https://api.github.com/repos/syncthing/syncthing/issues/1953/events","html_url":"https://github.com/syncthing/syncthing/issues/1953","id":88497963,"number":1953,"title":"Ignore pattern (?i) not working correctly for subfolders","user":{"login":"eyeson","id":11543157,"avatar_url":"https://avatars.githubusercontent.com/u/11543157?v=3","gravatar_id":"","url":"https://api.github.com/users/eyeson","html_url":"https://github.com/eyeson","followers_url":"https://api.github.com/users/eyeson/followers","following_url":"https://api.github.com/users/eyeson/following{/other_user}","gists_url":"https://api.github.com/users/eyeson/gists{/gist_id}","starred_url":"https://api.github.com/users/eyeson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eyeson/subscriptions","organizations_url":"https://api.github.com/users/eyeson/orgs","repos_url":"https://api.github.com/users/eyeson/repos","events_url":"https://api.github.com/users/eyeson/events{/privacy}","received_events_url":"https://api.github.com/users/eyeson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/syncthing/syncthing/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-06-15T18:03:29Z","updated_at":"2015-09-02T19:02:18Z","closed_at":null,"body":"Trying to create an ignore pattern that ignores all variants of Thumbs.db and Desktop.ini files.\r\n\r\nOn one of my windows machines:\r\n\r\nPattern used:\r\n\r\n\"(?i)thumbs.db\r\n(?i)desktop.ini\"\r\n\r\nThis ignored all thumbs and desktop files within the root of the folders, but didn't exclude files within sub directories. \r\n\r\n output of http://localhost:8384/rest/db/ignores?folder=folderid\r\n\r\n{\"ignore\":[\"(?i)thumbs.db\",\"(?i)desktop.ini\"],\"patterns\":[\"(?i)^thumbs\\.db$\",\"(?i)^.\\\\\\([^\\\\]i\\)thumbs\\.db$\",\"(?i)^thumbs\\.db\\\\.$\",\"(?i)^.\\\\\\([^\\\\]i\\)thumbs\\.db\\\\.$\",\"(?i)^desktop\\.ini$\",\"(?i)^.\\\\\\([^\\\\]i\\)desktop\\.ini$\",\"(?i)^desktop\\.ini\\\\.$\",\"(?i)^.\\\\\\([^\\\\]i\\)desktop\\.ini\\\\.$\"]}\r\n\r\nThis is the thread where I first brought this up: https://forum.syncthing.net/t/ignore-pattern-permission-question/2897/13\r\n\r\nAs mentioned in the thread, also potentially a second bug, when creating the ignore pattern the .stignore file isn't hidden by default, when I then hide it manually and edited it as per calmh's suggestions it became unhidden once more.\r\n"},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/comments/137213685","html_url":"https://github.com/syncthing/syncthing/issues/1953#issuecomment-137213685","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/1953","id":137213685,"user":{"login":"Zillode","id":14169,"avatar_url":"https://avatars.githubusercontent.com/u/14169?v=3","gravatar_id":"","url":"https://api.github.com/users/Zillode","html_url":"https://github.com/Zillode","followers_url":"https://api.github.com/users/Zillode/followers","following_url":"https://api.github.com/users/Zillode/following{/other_user}","gists_url":"https://api.github.com/users/Zillode/gists{/gist_id}","starred_url":"https://api.github.com/users/Zillode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zillode/subscriptions","organizations_url":"https://api.github.com/users/Zillode/orgs","repos_url":"https://api.github.com/users/Zillode/repos","events_url":"https://api.github.com/users/Zillode/events{/privacy}","received_events_url":"https://api.github.com/users/Zillode/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T19:02:18Z","updated_at":"2015-09-02T19:02:18Z","body":":+1: "}}