/**
 *Background script
 */
const _BUGTRACKER_ISSUE_URL_ = "http://redmine.microclimat.com/issues/"

$('.commit-title').each(function(){
    var content = $(this).text();
    var aContent = content.split(/(#[1-9\d-]+)/);
    if(aContent.length > 1) {
        console.log(aContent);
        var oLink = $(this).find('a');
        $(this).html();
        for (var i = 0; i < aContent.length; i++) {
            oLink.text(aContent[i]);
            $(this).append(oLink);
        }
    }
})

@@ -130,16 +130,42 @@
 tion()%7B%0A
+    var mythis = $(this);%0A
     var 
@@ -338,16 +338,19 @@
 ind('a')
+%5B0%5D
 ;%0A      
@@ -349,24 +349,26 @@
 ;%0A        $(
+my
 this).html()
@@ -366,16 +366,18 @@
 s).html(
+''
 );%0A     
@@ -439,66 +439,149 @@
     
-oLink.text(aContent%5Bi%5D);%0A            $(this).append(oLink)
+var newLink = oLink;%0A            $(newLink).text(aContent%5Bi%5D);%0A            $(newLink).clone().appendTo($(mythis));%0A            newLink = null
 ;%0A  

Split commit message in multiple link when issue found