payload: {"action":"created","comment":{"url":"https://api.github.com/repos/JabRef/jabref/pulls/comments/317365535","pull_request_review_id":279301090,"id":317365535,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMxNzM2NTUzNQ==","diff_hunk":"@@ -107,8 +113,24 @@ private void matchCitation(Path file, int lineNumber, String line) {\n         Matcher citeMatch = CITE_PATTERN.matcher(line);\n \n         while (citeMatch.find()) {\n-            Arrays.stream(citeMatch.group(CITE_GROUP).split(\",\"))\n-                  .forEach(key -> texParserResult.addKey(key, file, lineNumber, citeMatch.start(), citeMatch.end(), line));\n+            Arrays.stream(citeMatch.group(CITE_GROUP).split(\",\")).forEach(key ->\n+                    texParserResult.addKey(key, file, lineNumber, citeMatch.start(), citeMatch.end(), line));\n+        }\n+    }\n+\n+    /**\n+     * Find BIB files along a specific line and store them.\n+     */\n+    private void matchBibFile(Path file, String line) {\n+        Matcher bibliographyMatch = BIBLIOGRAPHY_PATTERN.matcher(line);\n+\n+        while (bibliographyMatch.find()) {\n+            Arrays.stream(bibliographyMatch.group(BIBLIOGRAPHY_GROUP).split(\",\"))\n+                  .map(bibString -> file.toAbsolutePath().getParent().resolve(bibString.endsWith(BIB_EXT)\n+                          ? bibString\n+                          : String.format(\"%s%s\", bibString, BIB_EXT)))\n+                  .filter(bibFile -> bibFile.toFile().exists())\n+                  .forEach(bibFile -> texParserResult.addBibFile(file, bibFile));","path":"src/main/java/org/jabref/logic/texparser/DefaultTexParser.java","position":56,"original_position":56,"commit_id":"d79a1eb1ee99028432d9a39e588921ffa7a42279","original_commit_id":"d79a1eb1ee99028432d9a39e588921ffa7a42279","user":{"login":"Siedlerchr","id":320228,"node_id":"MDQ6VXNlcjMyMDIyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/320228?v=4","gravatar_id":"","url":"https://api.github.com/users/Siedlerchr","html_url":"https://github.com/Siedlerchr","followers_url":"https://api.github.com/users/Siedlerchr/followers","following_url":"https://api.github.com/users/Siedlerchr/following{/other_user}","gists_url":"https://api.github.com/users/Siedlerchr/gists{/gist_id}","starred_url":"https://api.github.com/users/Siedlerchr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Siedlerchr/subscriptions","organizations_url":"https://api.github.com/users/Siedlerchr/orgs","repos_url":"https://api.github.com/users/Siedlerchr/repos","events_url":"https://api.github.com/users/Siedlerchr/events{/privacy}","received_events_url":"https://api.github.com/users/Siedlerchr/received_events","type":"User","site_admin":false},"body":"here also, a traditonal for loop is better","created_at":"2019-08-24T15:40:55Z","updated_at":"2019-08-24T15:40:55Z","html_url":"https://github.com/JabRef/jabref/pull/5192#discussion_r317365535","pull_request_url":"https://api.github.com/repos/JabRef/jabref/pulls/5192","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/comments/317365535"},"html":{"href":"https://github.com/JabRef/jabref/pull/5192#discussion_r317365535"},"pull_request":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/5192"}}},"pull_request":{"url":"https://api.github.com/repos/JabRef/jabref/pulls/5192","id":307411602,"node_id":"MDExOlB1bGxSZXF1ZXN0MzA3NDExNjAy","html_url":"https://github.com/JabRef/jabref/pull/5192","diff_url":"https://github.com/JabRef/jabref/pull/5192.diff","patch_url":"https://github.com/JabRef/jabref/pull/5192.patch","issue_url":"https://api.github.com/repos/JabRef/jabref/issues/5192","number":5192,"state":"open","locked":false,"title":"[WIP] Add import feature to LaTeX Citations Search","user":{"login":"davidemdot","id":12954316,"node_id":"MDQ6VXNlcjEyOTU0MzE2","avatar_url":"https://avatars1.githubusercontent.com/u/12954316?v=4","gravatar_id":"","url":"https://api.github.com/users/davidemdot","html_url":"https://github.com/davidemdot","followers_url":"https://api.github.com/users/davidemdot/followers","following_url":"https://api.github.com/users/davidemdot/following{/other_user}","gists_url":"https://api.github.com/users/davidemdot/gists{/gist_id}","starred_url":"https://api.github.com/users/davidemdot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidemdot/subscriptions","organizations_url":"https://api.github.com/users/davidemdot/orgs","repos_url":"https://api.github.com/users/davidemdot/repos","events_url":"https://api.github.com/users/davidemdot/events{/privacy}","received_events_url":"https://api.github.com/users/davidemdot/received_events","type":"User","site_admin":false},"body":"This PR extends the LaTeX Citations Search, allowing the import of the found entries.\r\n\r\n![resolver](https://user-images.githubusercontent.com/12954316/63039485-b2d95b00-bec3-11e9-87bd-fadf2dab009b.gif)\r\n\r\n----\r\n\r\n- [ ] Change in CHANGELOG.md described\r\n- [x] Tests created (adapted) for changes\r\n- [x] Manually tested changed features in running JabRef\r\n- [x] Screenshots added in PR description (for bigger UI changes)\r\n- [x] Ensured that [the git commit message is a good one](https://github.com/joelparkerhenderson/git_commit_message)\r\n- [ ] Check documentation status (Issue created for outdated help page at [help.jabref.org](https://github.com/JabRef/help.jabref.org/issues)?)\r\n","created_at":"2019-08-14T16:45:58Z","updated_at":"2019-08-24T15:40:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0816b71b2b3a959f0c461abc9b3f025091d5915f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1219336017,"node_id":"MDU6TGFiZWwxMjE5MzM2MDE3","url":"https://api.github.com/repos/JabRef/jabref/labels/GSoC","name":"GSoC","color":"a977f9","default":false},{"id":453234449,"node_id":"MDU6TGFiZWw0NTMyMzQ0NDk=","url":"https://api.github.com/repos/JabRef/jabref/labels/import","name":"import","color":"d93f0b","default":false},{"id":1328344569,"node_id":"MDU6TGFiZWwxMzI4MzQ0NTY5","url":"https://api.github.com/repos/JabRef/jabref/labels/latexParser","name":"latexParser","color":"c4e276","default":false},{"id":250116558,"node_id":"MDU6TGFiZWwyNTAxMTY1NTg=","url":"https://api.github.com/repos/JabRef/jabref/labels/ui","name":"ui","color":"5319e7","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/JabRef/jabref/pulls/5192/commits","review_comments_url":"https://api.github.com/repos/JabRef/jabref/pulls/5192/comments","review_comment_url":"https://api.github.com/repos/JabRef/jabref/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JabRef/jabref/issues/5192/comments","statuses_url":"https://api.github.com/repos/JabRef/jabref/statuses/d79a1eb1ee99028432d9a39e588921ffa7a42279","head":{"label":"davidemdot:latexintegration-importfoundentries","ref":"latexintegration-importfoundentries","sha":"d79a1eb1ee99028432d9a39e588921ffa7a42279","user":{"login":"davidemdot","id":12954316,"node_id":"MDQ6VXNlcjEyOTU0MzE2","avatar_url":"https://avatars1.githubusercontent.com/u/12954316?v=4","gravatar_id":"","url":"https://api.github.com/users/davidemdot","html_url":"https://github.com/davidemdot","followers_url":"https://api.github.com/users/davidemdot/followers","following_url":"https://api.github.com/users/davidemdot/following{/other_user}","gists_url":"https://api.github.com/users/davidemdot/gists{/gist_id}","starred_url":"https://api.github.com/users/davidemdot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidemdot/subscriptions","organizations_url":"https://api.github.com/users/davidemdot/orgs","repos_url":"https://api.github.com/users/davidemdot/repos","events_url":"https://api.github.com/users/davidemdot/events{/privacy}","received_events_url":"https://api.github.com/users/davidemdot/received_events","type":"User","site_admin":false},"repo":{"id":173269475,"node_id":"MDEwOlJlcG9zaXRvcnkxNzMyNjk0NzU=","name":"jabref","full_name":"davidemdot/jabref","private":false,"owner":{"login":"davidemdot","id":12954316,"node_id":"MDQ6VXNlcjEyOTU0MzE2","avatar_url":"https://avatars1.githubusercontent.com/u/12954316?v=4","gravatar_id":"","url":"https://api.github.com/users/davidemdot","html_url":"https://github.com/davidemdot","followers_url":"https://api.github.com/users/davidemdot/followers","following_url":"https://api.github.com/users/davidemdot/following{/other_user}","gists_url":"https://api.github.com/users/davidemdot/gists{/gist_id}","starred_url":"https://api.github.com/users/davidemdot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidemdot/subscriptions","organizations_url":"https://api.github.com/users/davidemdot/orgs","repos_url":"https://api.github.com/users/davidemdot/repos","events_url":"https://api.github.com/users/davidemdot/events{/privacy}","received_events_url":"https://api.github.com/users/davidemdot/received_events","type":"User","site_admin":false},"html_url":"https://github.com/davidemdot/jabref","description":"Graphical Java application for managing BibTeX and biblatex (.bib) databases","fork":true,"url":"https://api.github.com/repos/davidemdot/jabref","forks_url":"https://api.github.com/repos/davidemdot/jabref/forks","keys_url":"https://api.github.com/repos/davidemdot/jabref/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davidemdot/jabref/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davidemdot/jabref/teams","hooks_url":"https://api.github.com/repos/davidemdot/jabref/hooks","issue_events_url":"https://api.github.com/repos/davidemdot/jabref/issues/events{/number}","events_url":"https://api.github.com/repos/davidemdot/jabref/events","assignees_url":"https://api.github.com/repos/davidemdot/jabref/assignees{/user}","branches_url":"https://api.github.com/repos/davidemdot/jabref/branches{/branch}","tags_url":"https://api.github.com/repos/davidemdot/jabref/tags","blobs_url":"https://api.github.com/repos/davidemdot/jabref/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davidemdot/jabref/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davidemdot/jabref/git/refs{/sha}","trees_url":"https://api.github.com/repos/davidemdot/jabref/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davidemdot/jabref/statuses/{sha}","languages_url":"https://api.github.com/repos/davidemdot/jabref/languages","stargazers_url":"https://api.github.com/repos/davidemdot/jabref/stargazers","contributors_url":"https://api.github.com/repos/davidemdot/jabref/contributors","subscribers_url":"https://api.github.com/repos/davidemdot/jabref/subscribers","subscription_url":"https://api.github.com/repos/davidemdot/jabref/subscription","commits_url":"https://api.github.com/repos/davidemdot/jabref/commits{/sha}","git_commits_url":"https://api.github.com/repos/davidemdot/jabref/git/commits{/sha}","comments_url":"https://api.github.com/repos/davidemdot/jabref/comments{/number}","issue_comment_url":"https://api.github.com/repos/davidemdot/jabref/issues/comments{/number}","contents_url":"https://api.github.com/repos/davidemdot/jabref/contents/{+path}","compare_url":"https://api.github.com/repos/davidemdot/jabref/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davidemdot/jabref/merges","archive_url":"https://api.github.com/repos/davidemdot/jabref/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davidemdot/jabref/downloads","issues_url":"https://api.github.com/repos/davidemdot/jabref/issues{/number}","pulls_url":"https://api.github.com/repos/davidemdot/jabref/pulls{/number}","milestones_url":"https://api.github.com/repos/davidemdot/jabref/milestones{/number}","notifications_url":"https://api.github.com/repos/davidemdot/jabref/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davidemdot/jabref/labels{/name}","releases_url":"https://api.github.com/repos/davidemdot/jabref/releases{/id}","deployments_url":"https://api.github.com/repos/davidemdot/jabref/deployments","created_at":"2019-03-01T09:01:29Z","updated_at":"2019-08-22T16:42:17Z","pushed_at":"2019-08-24T11:55:47Z","git_url":"git://github.com/davidemdot/jabref.git","ssh_url":"git@github.com:davidemdot/jabref.git","clone_url":"https://github.com/davidemdot/jabref.git","svn_url":"https://github.com/davidemdot/jabref","homepage":"https://www.jabref.org","size":108429,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"JabRef:latexintegration","ref":"latexintegration","sha":"0255dda5221851449b1a5b7b6d2fe5aff51a2780","user":{"login":"JabRef","id":3914421,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MTQ0MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/3914421?v=4","gravatar_id":"","url":"https://api.github.com/users/JabRef","html_url":"https://github.com/JabRef","followers_url":"https://api.github.com/users/JabRef/followers","following_url":"https://api.github.com/users/JabRef/following{/other_user}","gists_url":"https://api.github.com/users/JabRef/gists{/gist_id}","starred_url":"https://api.github.com/users/JabRef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JabRef/subscriptions","organizations_url":"https://api.github.com/users/JabRef/orgs","repos_url":"https://api.github.com/users/JabRef/repos","events_url":"https://api.github.com/users/JabRef/events{/privacy}","received_events_url":"https://api.github.com/users/JabRef/received_events","type":"Organization","site_admin":false},"repo":{"id":17634071,"node_id":"MDEwOlJlcG9zaXRvcnkxNzYzNDA3MQ==","name":"jabref","full_name":"JabRef/jabref","private":false,"owner":{"login":"JabRef","id":3914421,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MTQ0MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/3914421?v=4","gravatar_id":"","url":"https://api.github.com/users/JabRef","html_url":"https://github.com/JabRef","followers_url":"https://api.github.com/users/JabRef/followers","following_url":"https://api.github.com/users/JabRef/following{/other_user}","gists_url":"https://api.github.com/users/JabRef/gists{/gist_id}","starred_url":"https://api.github.com/users/JabRef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JabRef/subscriptions","organizations_url":"https://api.github.com/users/JabRef/orgs","repos_url":"https://api.github.com/users/JabRef/repos","events_url":"https://api.github.com/users/JabRef/events{/privacy}","received_events_url":"https://api.github.com/users/JabRef/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/JabRef/jabref","description":"Graphical Java application for managing BibTeX and biblatex (.bib) databases","fork":false,"url":"https://api.github.com/repos/JabRef/jabref","forks_url":"https://api.github.com/repos/JabRef/jabref/forks","keys_url":"https://api.github.com/repos/JabRef/jabref/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JabRef/jabref/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JabRef/jabref/teams","hooks_url":"https://api.github.com/repos/JabRef/jabref/hooks","issue_events_url":"https://api.github.com/repos/JabRef/jabref/issues/events{/number}","events_url":"https://api.github.com/repos/JabRef/jabref/events","assignees_url":"https://api.github.com/repos/JabRef/jabref/assignees{/user}","branches_url":"https://api.github.com/repos/JabRef/jabref/branches{/branch}","tags_url":"https://api.github.com/repos/JabRef/jabref/tags","blobs_url":"https://api.github.com/repos/JabRef/jabref/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JabRef/jabref/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JabRef/jabref/git/refs{/sha}","trees_url":"https://api.github.com/repos/JabRef/jabref/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JabRef/jabref/statuses/{sha}","languages_url":"https://api.github.com/repos/JabRef/jabref/languages","stargazers_url":"https://api.github.com/repos/JabRef/jabref/stargazers","contributors_url":"https://api.github.com/repos/JabRef/jabref/contributors","subscribers_url":"https://api.github.com/repos/JabRef/jabref/subscribers","subscription_url":"https://api.github.com/repos/JabRef/jabref/subscription","commits_url":"https://api.github.com/repos/JabRef/jabref/commits{/sha}","git_commits_url":"https://api.github.com/repos/JabRef/jabref/git/commits{/sha}","comments_url":"https://api.github.com/repos/JabRef/jabref/comments{/number}","issue_comment_url":"https://api.github.com/repos/JabRef/jabref/issues/comments{/number}","contents_url":"https://api.github.com/repos/JabRef/jabref/contents/{+path}","compare_url":"https://api.github.com/repos/JabRef/jabref/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JabRef/jabref/merges","archive_url":"https://api.github.com/repos/JabRef/jabref/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JabRef/jabref/downloads","issues_url":"https://api.github.com/repos/JabRef/jabref/issues{/number}","pulls_url":"https://api.github.com/repos/JabRef/jabref/pulls{/number}","milestones_url":"https://api.github.com/repos/JabRef/jabref/milestones{/number}","notifications_url":"https://api.github.com/repos/JabRef/jabref/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JabRef/jabref/labels{/name}","releases_url":"https://api.github.com/repos/JabRef/jabref/releases{/id}","deployments_url":"https://api.github.com/repos/JabRef/jabref/deployments","created_at":"2014-03-11T14:48:42Z","updated_at":"2019-08-24T15:32:58Z","pushed_at":"2019-08-24T15:28:01Z","git_url":"git://github.com/JabRef/jabref.git","ssh_url":"git@github.com:JabRef/jabref.git","clone_url":"https://github.com/JabRef/jabref.git","svn_url":"https://github.com/JabRef/jabref","homepage":"https://www.jabref.org","size":112083,"stargazers_count":1381,"watchers_count":1381,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":962,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":238,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":962,"open_issues":238,"watchers":1381,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/5192"},"html":{"href":"https://github.com/JabRef/jabref/pull/5192"},"issue":{"href":"https://api.github.com/repos/JabRef/jabref/issues/5192"},"comments":{"href":"https://api.github.com/repos/JabRef/jabref/issues/5192/comments"},"review_comments":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/5192/comments"},"review_comment":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/5192/commits"},"statuses":{"href":"https://api.github.com/repos/JabRef/jabref/statuses/d79a1eb1ee99028432d9a39e588921ffa7a42279"}},"author_association":"MEMBER"}}
other: {"actor":{"display_login":"Siedlerchr"}}