{"action":"created","comment":{"url":"https://api.github.com/repos/pi-hole/AdminLTE/pulls/comments/93364880","pull_request_review_id":13890130,"id":93364880,"diff_hunk":"@@ -0,0 +1,122 @@\n+/*\n+Input Mask plugin extensions\n+http://github.com/RobinHerbots/jquery.inputmask\n+Copyright (c) 2010 - 2014 Robin Herbots\n+Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)\n+Version: 0.0.0\n+\n+Optional extensions on the jquery.inputmask base\n+*/\n+(function ($) {\n+    //extra definitions\n+    $.extend($.inputmask.defaults.definitions, {\n+        'A': {\n+            validator: \"[A-Za-z]\",\n+            cardinality: 1,\n+            casing: \"upper\" //auto uppercasing\n+        },\n+        '#': {\n+            validator: \"[A-Za-z\\u0410-\\u044F\\u0401\\u04510-9]\",\n+            cardinality: 1,\n+            casing: \"upper\"\n+        }\n+    });\n+    $.extend($.inputmask.defaults.aliases, {\n+        'url': {\n+            mask: \"ir\",\n+            placeholder: \"\",\n+            separator: \"\",\n+            defaultPrefix: \"http://\",\n+            regex: {\n+                urlpre1: new RegExp(\"[fh]\"),\n+                urlpre2: new RegExp(\"(ft|ht)\"),\n+                urlpre3: new RegExp(\"(ftp|htt)\"),\n+                urlpre4: new RegExp(\"(ftp:|http|ftps)\"),\n+                urlpre5: new RegExp(\"(ftp:/|ftps:|http:|https)\"),\n+                urlpre6: new RegExp(\"(ftp://|ftps:/|http:/|https:)\"),\n+                urlpre7: new RegExp(\"(ftp://|ftps://|http://|https:/)\"),\n+                urlpre8: new RegExp(\"(ftp://|ftps://|http://|https://)\")\n+            },\n+            definitions: {\n+                'i': {\n+                    validator: function (chrs, buffer, pos, strict, opts) {\n+                        return true;\n+                    },\n+                    cardinality: 8,\n+                    prevalidator: (function () {\n+                        var result = [], prefixLimit = 8;\n+                        for (var i = 0; i < prefixLimit; i++) {\n+                            result[i] = (function () {\n+                                var j = i;\n+                                return {\n+                                    validator: function (chrs, buffer, pos, strict, opts) {\n+                                        if (opts.regex[\"urlpre\" + (j + 1)]) {\n+                                            var tmp = chrs, k;\n+                                            if (((j + 1) - chrs.length) > 0) {\n+                                                tmp = buffer.join('').substring(0, ((j + 1) - chrs.length)) + \"\" + tmp;\n+                                            }\n+                                            var isValid = opts.regex[\"urlpre\" + (j + 1)].test(tmp);\n+                                            if (!strict && !isValid) {\n+                                                pos = pos - j;\n+                                                for (k = 0; k < opts.defaultPrefix.length; k++) {\n+                                                    buffer[pos] = opts.defaultPrefix[k]; pos++;\n+                                                }\n+                                                for (k = 0; k < tmp.length - 1; k++) {\n+                                                    buffer[pos] = tmp[k]; pos++;\n+                                                }\n+                                                return { \"pos\": pos };\n+                                            }\n+                                            return isValid;\n+                                        } else {\n+                                            return false;\n+                                        }\n+                                    }, cardinality: j\n+                                };\n+                            })();\n+                        }\n+                        return result;\n+                    })()\n+                },\n+                \"r\": {\n+                    validator: \".\",\n+                    cardinality: 50\n+                }\n+            },\n+            insertMode: false,\n+            autoUnmask: false\n+        },\n+        \"ip\": { //ip-address mask\n+            mask: [\"[[x]y]z.[[x]y]z.[[x]y]z.x[yz]\", \"[[x]y]z.[[x]y]z.[[x]y]z.[[x]y][z]\"],\n+            definitions: {\n+                'x': {\n+                    validator: \"[012]\",\n+                    cardinality: 1,\n+                    definitionSymbol: \"i\"\n+                },\n+                'y': {\n+                    validator: function (chrs, buffer, pos, strict, opts) {\n+                        if (pos - 1 > -1 && buffer[pos - 1] != \".\")\n+                            chrs = buffer[pos - 1] + chrs;\n+                        else chrs = \"0\" + chrs;\n+                        return new RegExp(\"2[0-5]|[01][0-9]\").test(chrs);\n+                    },\n+                    cardinality: 1,\n+                    definitionSymbol: \"i\"\n+                },\n+                'z': {","path":"scripts/vendor/jquery.inputmask.extensions.js","position":106,"original_position":106,"commit_id":"fba3d10fa46d2332851d7fdbbcb7715c5d73da57","original_commit_id":"fba3d10fa46d2332851d7fdbbcb7715c5d73da57","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Strings must use doublequote. (quotes)](https://www.codacy.com/app/Pi-hole/AdminLTE/file/4785350394/issues/source?bid=3919165&fileBranchId=3997462#l106)","created_at":"2016-12-21T02:28:47Z","updated_at":"2016-12-21T02:28:47Z","html_url":"https://github.com/pi-hole/AdminLTE/pull/245#discussion_r93364880","pull_request_url":"https://api.github.com/repos/pi-hole/AdminLTE/pulls/245","_links":{"self":{"href":"https://api.github.com/repos/pi-hole/AdminLTE/pulls/comments/93364880"},"html":{"href":"https://github.com/pi-hole/AdminLTE/pull/245#discussion_r93364880"},"pull_request":{"href":"https://api.github.com/repos/pi-hole/AdminLTE/pulls/245"}}},"pull_request":{"url":"https://api.github.com/repos/pi-hole/AdminLTE/pulls/245","id":98023966,"html_url":"https://github.com/pi-hole/AdminLTE/pull/245","diff_url":"https://github.com/pi-hole/AdminLTE/pull/245.diff","patch_url":"https://github.com/pi-hole/AdminLTE/pull/245.patch","issue_url":"https://api.github.com/repos/pi-hole/AdminLTE/issues/245","number":245,"state":"open","locked":false,"title":"Pi-Hole Web Admin Release v2.0","user":{"login":"PromoFaux","id":1998970,"avatar_url":"https://avatars.githubusercontent.com/u/1998970?v=3","gravatar_id":"","url":"https://api.github.com/users/PromoFaux","html_url":"https://github.com/PromoFaux","followers_url":"https://api.github.com/users/PromoFaux/followers","following_url":"https://api.github.com/users/PromoFaux/following{/other_user}","gists_url":"https://api.github.com/users/PromoFaux/gists{/gist_id}","starred_url":"https://api.github.com/users/PromoFaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PromoFaux/subscriptions","organizations_url":"https://api.github.com/users/PromoFaux/orgs","repos_url":"https://api.github.com/users/PromoFaux/repos","events_url":"https://api.github.com/users/PromoFaux/events{/privacy}","received_events_url":"https://api.github.com/users/PromoFaux/received_events","type":"User","site_admin":false},"body":"Requires a synchronised release with Pi-hole core, as it depends on some backend changes that are introduced in the `development` branch","created_at":"2016-12-14T19:56:03Z","updated_at":"2016-12-21T02:28:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3024cdb01bfdc3cc010157984233a99beff84f2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pi-hole/AdminLTE/pulls/245/commits","review_comments_url":"https://api.github.com/repos/pi-hole/AdminLTE/pulls/245/comments","review_comment_url":"https://api.github.com/repos/pi-hole/AdminLTE/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pi-hole/AdminLTE/issues/245/comments","statuses_url":"https://api.github.com/repos/pi-hole/AdminLTE/statuses/fba3d10fa46d2332851d7fdbbcb7715c5d73da57","head":{"label":"pi-hole:devel","ref":"devel","sha":"fba3d10fa46d2332851d7fdbbcb7715c5d73da57","user":{"login":"pi-hole","id":16827203,"avatar_url":"https://avatars.githubusercontent.com/u/16827203?v=3","gravatar_id":"","url":"https://api.github.com/users/pi-hole","html_url":"https://github.com/pi-hole","followers_url":"https://api.github.com/users/pi-hole/followers","following_url":"https://api.github.com/users/pi-hole/following{/other_user}","gists_url":"https://api.github.com/users/pi-hole/gists{/gist_id}","starred_url":"https://api.github.com/users/pi-hole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pi-hole/subscriptions","organizations_url":"https://api.github.com/users/pi-hole/orgs","repos_url":"https://api.github.com/users/pi-hole/repos","events_url":"https://api.github.com/users/pi-hole/events{/privacy}","received_events_url":"https://api.github.com/users/pi-hole/received_events","type":"Organization","site_admin":false},"repo":{"id":39698170,"name":"AdminLTE","full_name":"pi-hole/AdminLTE","owner":{"login":"pi-hole","id":16827203,"avatar_url":"https://avatars.githubusercontent.com/u/16827203?v=3","gravatar_id":"","url":"https://api.github.com/users/pi-hole","html_url":"https://github.com/pi-hole","followers_url":"https://api.github.com/users/pi-hole/followers","following_url":"https://api.github.com/users/pi-hole/following{/other_user}","gists_url":"https://api.github.com/users/pi-hole/gists{/gist_id}","starred_url":"https://api.github.com/users/pi-hole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pi-hole/subscriptions","organizations_url":"https://api.github.com/users/pi-hole/orgs","repos_url":"https://api.github.com/users/pi-hole/repos","events_url":"https://api.github.com/users/pi-hole/events{/privacy}","received_events_url":"https://api.github.com/users/pi-hole/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pi-hole/AdminLTE","description":"Pi-hole Dashboard for stats and more","fork":false,"url":"https://api.github.com/repos/pi-hole/AdminLTE","forks_url":"https://api.github.com/repos/pi-hole/AdminLTE/forks","keys_url":"https://api.github.com/repos/pi-hole/AdminLTE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pi-hole/AdminLTE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pi-hole/AdminLTE/teams","hooks_url":"https://api.github.com/repos/pi-hole/AdminLTE/hooks","issue_events_url":"https://api.github.com/repos/pi-hole/AdminLTE/issues/events{/number}","events_url":"https://api.github.com/repos/pi-hole/AdminLTE/events","assignees_url":"https://api.github.com/repos/pi-hole/AdminLTE/assignees{/user}","branches_url":"https://api.github.com/repos/pi-hole/AdminLTE/branches{/branch}","tags_url":"https://api.github.com/repos/pi-hole/AdminLTE/tags","blobs_url":"https://api.github.com/repos/pi-hole/AdminLTE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pi-hole/AdminLTE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pi-hole/AdminLTE/git/refs{/sha}","trees_url":"https://api.github.com/repos/pi-hole/AdminLTE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pi-hole/AdminLTE/statuses/{sha}","languages_url":"https://api.github.com/repos/pi-hole/AdminLTE/languages","stargazers_url":"https://api.github.com/repos/pi-hole/AdminLTE/stargazers","contributors_url":"https://api.github.com/repos/pi-hole/AdminLTE/contributors","subscribers_url":"https://api.github.com/repos/pi-hole/AdminLTE/subscribers","subscription_url":"https://api.github.com/repos/pi-hole/AdminLTE/subscription","commits_url":"https://api.github.com/repos/pi-hole/AdminLTE/commits{/sha}","git_commits_url":"https://api.github.com/repos/pi-hole/AdminLTE/git/commits{/sha}","comments_url":"https://api.github.com/repos/pi-hole/AdminLTE/comments{/number}","issue_comment_url":"https://api.github.com/repos/pi-hole/AdminLTE/issues/comments{/number}","contents_url":"https://api.github.com/repos/pi-hole/AdminLTE/contents/{+path}","compare_url":"https://api.github.com/repos/pi-hole/AdminLTE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pi-hole/AdminLTE/merges","archive_url":"https://api.github.com/repos/pi-hole/AdminLTE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pi-hole/AdminLTE/downloads","issues_url":"https://api.github.com/repos/pi-hole/AdminLTE/issues{/number}","pulls_url":"https://api.github.com/repos/pi-hole/AdminLTE/pulls{/number}","milestones_url":"https://api.github.com/repos/pi-hole/AdminLTE/milestones{/number}","notifications_url":"https://api.github.com/repos/pi-hole/AdminLTE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pi-hole/AdminLTE/labels{/name}","releases_url":"https://api.github.com/repos/pi-hole/AdminLTE/releases{/id}","deployments_url":"https://api.github.com/repos/pi-hole/AdminLTE/deployments","created_at":"2015-07-25T18:45:30Z","updated_at":"2016-12-21T01:22:11Z","pushed_at":"2016-12-20T22:24:14Z","git_url":"git://github.com/pi-hole/AdminLTE.git","ssh_url":"git@github.com:pi-hole/AdminLTE.git","clone_url":"https://github.com/pi-hole/AdminLTE.git","svn_url":"https://github.com/pi-hole/AdminLTE","homepage":"https://pi-hole.net","size":24109,"stargazers_count":78,"watchers_count":78,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":59,"mirror_url":null,"open_issues_count":16,"forks":59,"open_issues":16,"watchers":78,"default_branch":"master"}},"base":{"label":"pi-hole:master","ref":"master","sha":"3e6955d4a01d78bb8c73a8f9fcec6d3be51bea4c","user":{"login":"pi-hole","id":16827203,"avatar_url":"https://avatars.githubusercontent.com/u/16827203?v=3","gravatar_id":"","url":"https://api.github.com/users/pi-hole","html_url":"https://github.com/pi-hole","followers_url":"https://api.github.com/users/pi-hole/followers","following_url":"https://api.github.com/users/pi-hole/following{/other_user}","gists_url":"https://api.github.com/users/pi-hole/gists{/gist_id}","starred_url":"https://api.github.com/users/pi-hole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pi-hole/subscriptions","organizations_url":"https://api.github.com/users/pi-hole/orgs","repos_url":"https://api.github.com/users/pi-hole/repos","events_url":"https://api.github.com/users/pi-hole/events{/privacy}","received_events_url":"https://api.github.com/users/pi-hole/received_events","type":"Organization","site_admin":false},"repo":{"id":39698170,"name":"AdminLTE","full_name":"pi-hole/AdminLTE","owner":{"login":"pi-hole","id":16827203,"avatar_url":"https://avatars.githubusercontent.com/u/16827203?v=3","gravatar_id":"","url":"https://api.github.com/users/pi-hole","html_url":"https://github.com/pi-hole","followers_url":"https://api.github.com/users/pi-hole/followers","following_url":"https://api.github.com/users/pi-hole/following{/other_user}","gists_url":"https://api.github.com/users/pi-hole/gists{/gist_id}","starred_url":"https://api.github.com/users/pi-hole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pi-hole/subscriptions","organizations_url":"https://api.github.com/users/pi-hole/orgs","repos_url":"https://api.github.com/users/pi-hole/repos","events_url":"https://api.github.com/users/pi-hole/events{/privacy}","received_events_url":"https://api.github.com/users/pi-hole/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pi-hole/AdminLTE","description":"Pi-hole Dashboard for stats and more","fork":false,"url":"https://api.github.com/repos/pi-hole/AdminLTE","forks_url":"https://api.github.com/repos/pi-hole/AdminLTE/forks","keys_url":"https://api.github.com/repos/pi-hole/AdminLTE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pi-hole/AdminLTE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pi-hole/AdminLTE/teams","hooks_url":"https://api.github.com/repos/pi-hole/AdminLTE/hooks","issue_events_url":"https://api.github.com/repos/pi-hole/AdminLTE/issues/events{/number}","events_url":"https://api.github.com/repos/pi-hole/AdminLTE/events","assignees_url":"https://api.github.com/repos/pi-hole/AdminLTE/assignees{/user}","branches_url":"https://api.github.com/repos/pi-hole/AdminLTE/branches{/branch}","tags_url":"https://api.github.com/repos/pi-hole/AdminLTE/tags","blobs_url":"https://api.github.com/repos/pi-hole/AdminLTE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pi-hole/AdminLTE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pi-hole/AdminLTE/git/refs{/sha}","trees_url":"https://api.github.com/repos/pi-hole/AdminLTE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pi-hole/AdminLTE/statuses/{sha}","languages_url":"https://api.github.com/repos/pi-hole/AdminLTE/languages","stargazers_url":"https://api.github.com/repos/pi-hole/AdminLTE/stargazers","contributors_url":"https://api.github.com/repos/pi-hole/AdminLTE/contributors","subscribers_url":"https://api.github.com/repos/pi-hole/AdminLTE/subscribers","subscription_url":"https://api.github.com/repos/pi-hole/AdminLTE/subscription","commits_url":"https://api.github.com/repos/pi-hole/AdminLTE/commits{/sha}","git_commits_url":"https://api.github.com/repos/pi-hole/AdminLTE/git/commits{/sha}","comments_url":"https://api.github.com/repos/pi-hole/AdminLTE/comments{/number}","issue_comment_url":"https://api.github.com/repos/pi-hole/AdminLTE/issues/comments{/number}","contents_url":"https://api.github.com/repos/pi-hole/AdminLTE/contents/{+path}","compare_url":"https://api.github.com/repos/pi-hole/AdminLTE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pi-hole/AdminLTE/merges","archive_url":"https://api.github.com/repos/pi-hole/AdminLTE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pi-hole/AdminLTE/downloads","issues_url":"https://api.github.com/repos/pi-hole/AdminLTE/issues{/number}","pulls_url":"https://api.github.com/repos/pi-hole/AdminLTE/pulls{/number}","milestones_url":"https://api.github.com/repos/pi-hole/AdminLTE/milestones{/number}","notifications_url":"https://api.github.com/repos/pi-hole/AdminLTE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pi-hole/AdminLTE/labels{/name}","releases_url":"https://api.github.com/repos/pi-hole/AdminLTE/releases{/id}","deployments_url":"https://api.github.com/repos/pi-hole/AdminLTE/deployments","created_at":"2015-07-25T18:45:30Z","updated_at":"2016-12-21T01:22:11Z","pushed_at":"2016-12-20T22:24:14Z","git_url":"git://github.com/pi-hole/AdminLTE.git","ssh_url":"git@github.com:pi-hole/AdminLTE.git","clone_url":"https://github.com/pi-hole/AdminLTE.git","svn_url":"https://github.com/pi-hole/AdminLTE","homepage":"https://pi-hole.net","size":24109,"stargazers_count":78,"watchers_count":78,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":59,"mirror_url":null,"open_issues_count":16,"forks":59,"open_issues":16,"watchers":78,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pi-hole/AdminLTE/pulls/245"},"html":{"href":"https://github.com/pi-hole/AdminLTE/pull/245"},"issue":{"href":"https://api.github.com/repos/pi-hole/AdminLTE/issues/245"},"comments":{"href":"https://api.github.com/repos/pi-hole/AdminLTE/issues/245/comments"},"review_comments":{"href":"https://api.github.com/repos/pi-hole/AdminLTE/pulls/245/comments"},"review_comment":{"href":"https://api.github.com/repos/pi-hole/AdminLTE/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pi-hole/AdminLTE/pulls/245/commits"},"statuses":{"href":"https://api.github.com/repos/pi-hole/AdminLTE/statuses/fba3d10fa46d2332851d7fdbbcb7715c5d73da57"}}}}
{"actor":{"display_login":"codacy-bot"}}