{"action":"created","issue":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3197","repository_url":"https://api.github.com/repos/RocketChat/Rocket.Chat","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3197/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3197/comments","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3197/events","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/3197","id":154193594,"number":3197,"title":"Custom replaceFn","user":{"login":"baruKV","id":2014138,"avatar_url":"https://avatars.githubusercontent.com/u/2014138?v=3","gravatar_id":"","url":"https://api.github.com/users/baruKV","html_url":"https://github.com/baruKV","followers_url":"https://api.github.com/users/baruKV/followers","following_url":"https://api.github.com/users/baruKV/following{/other_user}","gists_url":"https://api.github.com/users/baruKV/gists{/gist_id}","starred_url":"https://api.github.com/users/baruKV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baruKV/subscriptions","organizations_url":"https://api.github.com/users/baruKV/orgs","repos_url":"https://api.github.com/users/baruKV/repos","events_url":"https://api.github.com/users/baruKV/events{/privacy}","received_events_url":"https://api.github.com/users/baruKV/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-11T09:02:54Z","updated_at":"2016-05-11T11:59:48Z","closed_at":null,"body":"Hi,\r\n\r\nI want to add a custom replaceFn function to autolink our ticket ids.\r\nI figured out how but not where (https://github.com/gregjacobs/Autolinker.js#custom-replacement-function)\r\nWhat is the best way to do it? I use docker and in the Dockerfile the release is downloaded from web.\r\n\r\nYour Rocket.Chat version: 0.23.0"},"comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments/218438668","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/3197#issuecomment-218438668","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3197","id":218438668,"user":{"login":"marceloschmidt","id":1986378,"avatar_url":"https://avatars.githubusercontent.com/u/1986378?v=3","gravatar_id":"","url":"https://api.github.com/users/marceloschmidt","html_url":"https://github.com/marceloschmidt","followers_url":"https://api.github.com/users/marceloschmidt/followers","following_url":"https://api.github.com/users/marceloschmidt/following{/other_user}","gists_url":"https://api.github.com/users/marceloschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/marceloschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marceloschmidt/subscriptions","organizations_url":"https://api.github.com/users/marceloschmidt/orgs","repos_url":"https://api.github.com/users/marceloschmidt/repos","events_url":"https://api.github.com/users/marceloschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/marceloschmidt/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T11:59:48Z","updated_at":"2016-05-11T11:59:48Z","body":"You'd probably have to make changes to the autolinker package `packages/rocketchat-autolinker/autolinker.coffee`. Using docker is not the best way to make changes to the source code. I recommend forking the project on github, making your changes, then compiling it yourself... you can create a new docker image after you make the changes."}}