{"action":"created","comment":{"url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/pulls/comments/69953579","id":69953579,"diff_hunk":"@@ -77,17 +77,8 @@ public void Fix(Subtitle subtitle, IFixCallbacks callbacks)\n                 match = FixMissingSpacesReColon.Match(p.Text);\r\n                 while (match.Success)\r\n                 {\r\n-                    int start = match.Index;\r\n-                    start -= 4;\r\n-                    if (start < 0)\r\n-                        start = 0;\r\n-                    int indexOfStartCodeTag = p.Text.IndexOf('{', start);\r\n-                    int indexOfEndCodeTag = p.Text.IndexOf('}', start);\r\n-                    if (indexOfStartCodeTag >= 0 && indexOfEndCodeTag >= 0 && indexOfStartCodeTag < match.Index)\r\n-                    {\r\n-                        // we are inside a tag: like indexOfEndCodeTag \"{y:i}Is this italic?\"\r\n-                    }\r\n-                    else if (allowFix && !@\"\"\"<\".Contains(p.Text[match.Index + 2]))\r\n+                    // Do not add space if *match.Index is inside brackets. e.g: \"{y:i}Is this italic?\"\r\n+                    if (allowFix && !IsBetweenBrackets(p.Text, match.Index) && !@\"\"\"<\".Contains(p.Text[match.Index + 2]))\r","path":"libse/Forms/FixCommonErrors/FixMissingSpaces.cs","position":16,"original_position":16,"commit_id":"8d40115355705ca3311af463a9cbce43816ef08f","original_commit_id":"8d40115355705ca3311af463a9cbce43816ef08f","user":{"login":"ivandrofly","id":6579818,"avatar_url":"https://avatars.githubusercontent.com/u/6579818?v=3","gravatar_id":"","url":"https://api.github.com/users/ivandrofly","html_url":"https://github.com/ivandrofly","followers_url":"https://api.github.com/users/ivandrofly/followers","following_url":"https://api.github.com/users/ivandrofly/following{/other_user}","gists_url":"https://api.github.com/users/ivandrofly/gists{/gist_id}","starred_url":"https://api.github.com/users/ivandrofly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivandrofly/subscriptions","organizations_url":"https://api.github.com/users/ivandrofly/orgs","repos_url":"https://api.github.com/users/ivandrofly/repos","events_url":"https://api.github.com/users/ivandrofly/events{/privacy}","received_events_url":"https://api.github.com/users/ivandrofly/received_events","type":"User","site_admin":false},"body":"IsBetweenBrackets will only be called if `allowFix == true`.","created_at":"2016-07-07T17:50:59Z","updated_at":"2016-07-07T17:50:59Z","html_url":"https://github.com/SubtitleEdit/subtitleedit/pull/1836#discussion_r69953579","pull_request_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/pulls/1836","_links":{"self":{"href":"https://api.github.com/repos/SubtitleEdit/subtitleedit/pulls/comments/69953579"},"html":{"href":"https://github.com/SubtitleEdit/subtitleedit/pull/1836#discussion_r69953579"},"pull_request":{"href":"https://api.github.com/repos/SubtitleEdit/subtitleedit/pulls/1836"}}},"pull_request":{"url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/pulls/1836","id":76635852,"html_url":"https://github.com/SubtitleEdit/subtitleedit/pull/1836","diff_url":"https://github.com/SubtitleEdit/subtitleedit/pull/1836.diff","patch_url":"https://github.com/SubtitleEdit/subtitleedit/pull/1836.patch","issue_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/issues/1836","number":1836,"state":"open","locked":false,"title":"[FixMissingSpaces] - Some fix regarding to index between brackets.","user":{"login":"ivandrofly","id":6579818,"avatar_url":"https://avatars.githubusercontent.com/u/6579818?v=3","gravatar_id":"","url":"https://api.github.com/users/ivandrofly","html_url":"https://github.com/ivandrofly","followers_url":"https://api.github.com/users/ivandrofly/followers","following_url":"https://api.github.com/users/ivandrofly/following{/other_user}","gists_url":"https://api.github.com/users/ivandrofly/gists{/gist_id}","starred_url":"https://api.github.com/users/ivandrofly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivandrofly/subscriptions","organizations_url":"https://api.github.com/users/ivandrofly/orgs","repos_url":"https://api.github.com/users/ivandrofly/repos","events_url":"https://api.github.com/users/ivandrofly/events{/privacy}","received_events_url":"https://api.github.com/users/ivandrofly/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-07T17:39:12Z","updated_at":"2016-07-07T17:50:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"794e571017fab8e6512d31a466aa57a1ce996190","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/pulls/1836/commits","review_comments_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/pulls/1836/comments","review_comment_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/issues/1836/comments","statuses_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/statuses/8d40115355705ca3311af463a9cbce43816ef08f","head":{"label":"ivandrofly:fms-1","ref":"fms-1","sha":"8d40115355705ca3311af463a9cbce43816ef08f","user":{"login":"ivandrofly","id":6579818,"avatar_url":"https://avatars.githubusercontent.com/u/6579818?v=3","gravatar_id":"","url":"https://api.github.com/users/ivandrofly","html_url":"https://github.com/ivandrofly","followers_url":"https://api.github.com/users/ivandrofly/followers","following_url":"https://api.github.com/users/ivandrofly/following{/other_user}","gists_url":"https://api.github.com/users/ivandrofly/gists{/gist_id}","starred_url":"https://api.github.com/users/ivandrofly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivandrofly/subscriptions","organizations_url":"https://api.github.com/users/ivandrofly/orgs","repos_url":"https://api.github.com/users/ivandrofly/repos","events_url":"https://api.github.com/users/ivandrofly/events{/privacy}","received_events_url":"https://api.github.com/users/ivandrofly/received_events","type":"User","site_admin":false},"repo":{"id":20601147,"name":"subtitleedit","full_name":"ivandrofly/subtitleedit","owner":{"login":"ivandrofly","id":6579818,"avatar_url":"https://avatars.githubusercontent.com/u/6579818?v=3","gravatar_id":"","url":"https://api.github.com/users/ivandrofly","html_url":"https://github.com/ivandrofly","followers_url":"https://api.github.com/users/ivandrofly/followers","following_url":"https://api.github.com/users/ivandrofly/following{/other_user}","gists_url":"https://api.github.com/users/ivandrofly/gists{/gist_id}","starred_url":"https://api.github.com/users/ivandrofly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivandrofly/subscriptions","organizations_url":"https://api.github.com/users/ivandrofly/orgs","repos_url":"https://api.github.com/users/ivandrofly/repos","events_url":"https://api.github.com/users/ivandrofly/events{/privacy}","received_events_url":"https://api.github.com/users/ivandrofly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ivandrofly/subtitleedit","description":"the subtitle editor :)","fork":true,"url":"https://api.github.com/repos/ivandrofly/subtitleedit","forks_url":"https://api.github.com/repos/ivandrofly/subtitleedit/forks","keys_url":"https://api.github.com/repos/ivandrofly/subtitleedit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ivandrofly/subtitleedit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ivandrofly/subtitleedit/teams","hooks_url":"https://api.github.com/repos/ivandrofly/subtitleedit/hooks","issue_events_url":"https://api.github.com/repos/ivandrofly/subtitleedit/issues/events{/number}","events_url":"https://api.github.com/repos/ivandrofly/subtitleedit/events","assignees_url":"https://api.github.com/repos/ivandrofly/subtitleedit/assignees{/user}","branches_url":"https://api.github.com/repos/ivandrofly/subtitleedit/branches{/branch}","tags_url":"https://api.github.com/repos/ivandrofly/subtitleedit/tags","blobs_url":"https://api.github.com/repos/ivandrofly/subtitleedit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ivandrofly/subtitleedit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ivandrofly/subtitleedit/git/refs{/sha}","trees_url":"https://api.github.com/repos/ivandrofly/subtitleedit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ivandrofly/subtitleedit/statuses/{sha}","languages_url":"https://api.github.com/repos/ivandrofly/subtitleedit/languages","stargazers_url":"https://api.github.com/repos/ivandrofly/subtitleedit/stargazers","contributors_url":"https://api.github.com/repos/ivandrofly/subtitleedit/contributors","subscribers_url":"https://api.github.com/repos/ivandrofly/subtitleedit/subscribers","subscription_url":"https://api.github.com/repos/ivandrofly/subtitleedit/subscription","commits_url":"https://api.github.com/repos/ivandrofly/subtitleedit/commits{/sha}","git_commits_url":"https://api.github.com/repos/ivandrofly/subtitleedit/git/commits{/sha}","comments_url":"https://api.github.com/repos/ivandrofly/subtitleedit/comments{/number}","issue_comment_url":"https://api.github.com/repos/ivandrofly/subtitleedit/issues/comments{/number}","contents_url":"https://api.github.com/repos/ivandrofly/subtitleedit/contents/{+path}","compare_url":"https://api.github.com/repos/ivandrofly/subtitleedit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ivandrofly/subtitleedit/merges","archive_url":"https://api.github.com/repos/ivandrofly/subtitleedit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ivandrofly/subtitleedit/downloads","issues_url":"https://api.github.com/repos/ivandrofly/subtitleedit/issues{/number}","pulls_url":"https://api.github.com/repos/ivandrofly/subtitleedit/pulls{/number}","milestones_url":"https://api.github.com/repos/ivandrofly/subtitleedit/milestones{/number}","notifications_url":"https://api.github.com/repos/ivandrofly/subtitleedit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ivandrofly/subtitleedit/labels{/name}","releases_url":"https://api.github.com/repos/ivandrofly/subtitleedit/releases{/id}","deployments_url":"https://api.github.com/repos/ivandrofly/subtitleedit/deployments","created_at":"2014-06-07T19:35:40Z","updated_at":"2016-01-27T18:25:39Z","pushed_at":"2016-07-07T17:40:27Z","git_url":"git://github.com/ivandrofly/subtitleedit.git","ssh_url":"git@github.com:ivandrofly/subtitleedit.git","clone_url":"https://github.com/ivandrofly/subtitleedit.git","svn_url":"https://github.com/ivandrofly/subtitleedit","homepage":"http://www.nikse.dk/SubtitleEdit/","size":135594,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SubtitleEdit:master","ref":"master","sha":"a48d4f91a0ebd9f585d9510817c27c4b4d2fcf1a","user":{"login":"SubtitleEdit","id":3008853,"avatar_url":"https://avatars.githubusercontent.com/u/3008853?v=3","gravatar_id":"","url":"https://api.github.com/users/SubtitleEdit","html_url":"https://github.com/SubtitleEdit","followers_url":"https://api.github.com/users/SubtitleEdit/followers","following_url":"https://api.github.com/users/SubtitleEdit/following{/other_user}","gists_url":"https://api.github.com/users/SubtitleEdit/gists{/gist_id}","starred_url":"https://api.github.com/users/SubtitleEdit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SubtitleEdit/subscriptions","organizations_url":"https://api.github.com/users/SubtitleEdit/orgs","repos_url":"https://api.github.com/users/SubtitleEdit/repos","events_url":"https://api.github.com/users/SubtitleEdit/events{/privacy}","received_events_url":"https://api.github.com/users/SubtitleEdit/received_events","type":"Organization","site_admin":false},"repo":{"id":16473585,"name":"subtitleedit","full_name":"SubtitleEdit/subtitleedit","owner":{"login":"SubtitleEdit","id":3008853,"avatar_url":"https://avatars.githubusercontent.com/u/3008853?v=3","gravatar_id":"","url":"https://api.github.com/users/SubtitleEdit","html_url":"https://github.com/SubtitleEdit","followers_url":"https://api.github.com/users/SubtitleEdit/followers","following_url":"https://api.github.com/users/SubtitleEdit/following{/other_user}","gists_url":"https://api.github.com/users/SubtitleEdit/gists{/gist_id}","starred_url":"https://api.github.com/users/SubtitleEdit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SubtitleEdit/subscriptions","organizations_url":"https://api.github.com/users/SubtitleEdit/orgs","repos_url":"https://api.github.com/users/SubtitleEdit/repos","events_url":"https://api.github.com/users/SubtitleEdit/events{/privacy}","received_events_url":"https://api.github.com/users/SubtitleEdit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SubtitleEdit/subtitleedit","description":"the subtitle editor :)","fork":false,"url":"https://api.github.com/repos/SubtitleEdit/subtitleedit","forks_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/forks","keys_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/teams","hooks_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/hooks","issue_events_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/issues/events{/number}","events_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/events","assignees_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/assignees{/user}","branches_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/branches{/branch}","tags_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/tags","blobs_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/git/refs{/sha}","trees_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/statuses/{sha}","languages_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/languages","stargazers_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/stargazers","contributors_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/contributors","subscribers_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/subscribers","subscription_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/subscription","commits_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/commits{/sha}","git_commits_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/git/commits{/sha}","comments_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/comments{/number}","issue_comment_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/issues/comments{/number}","contents_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/contents/{+path}","compare_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/merges","archive_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/downloads","issues_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/issues{/number}","pulls_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/pulls{/number}","milestones_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/milestones{/number}","notifications_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/labels{/name}","releases_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/releases{/id}","deployments_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/deployments","created_at":"2014-02-03T08:17:41Z","updated_at":"2016-07-06T16:27:40Z","pushed_at":"2016-07-07T17:40:27Z","git_url":"git://github.com/SubtitleEdit/subtitleedit.git","ssh_url":"git@github.com:SubtitleEdit/subtitleedit.git","clone_url":"https://github.com/SubtitleEdit/subtitleedit.git","svn_url":"https://github.com/SubtitleEdit/subtitleedit","homepage":"http://www.nikse.dk/SubtitleEdit/","size":141400,"stargazers_count":466,"watchers_count":466,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":113,"mirror_url":null,"open_issues_count":197,"forks":113,"open_issues":197,"watchers":466,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SubtitleEdit/subtitleedit/pulls/1836"},"html":{"href":"https://github.com/SubtitleEdit/subtitleedit/pull/1836"},"issue":{"href":"https://api.github.com/repos/SubtitleEdit/subtitleedit/issues/1836"},"comments":{"href":"https://api.github.com/repos/SubtitleEdit/subtitleedit/issues/1836/comments"},"review_comments":{"href":"https://api.github.com/repos/SubtitleEdit/subtitleedit/pulls/1836/comments"},"review_comment":{"href":"https://api.github.com/repos/SubtitleEdit/subtitleedit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SubtitleEdit/subtitleedit/pulls/1836/commits"},"statuses":{"href":"https://api.github.com/repos/SubtitleEdit/subtitleedit/statuses/8d40115355705ca3311af463a9cbce43816ef08f"}}}}
{"actor":{"display_login":"ivandrofly"}}