<commit_before>/**
 *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);
        }
    }
})<commit_msg>Split commit message in multiple link when issue found<commit_after>/**
 *Background script
 */
const _BUGTRACKER_ISSUE_URL_ = "http://redmine.microclimat.com/issues/"

$('.commit-title').each(function(){
    var mythis = $(this);
    var content = $(this).text();
    var aContent = content.split(/(#[1-9\d-]+)/);
    if(aContent.length > 1) {
        console.log(aContent);
        var oLink = $(this).find('a')[0];
        $(mythis).html('');
        for (var i = 0; i < aContent.length; i++) {
            var newLink = oLink;
            $(newLink).text(aContent[i]);
            $(newLink).clone().appendTo($(mythis));
            newLink = null;
        }
    }
})
{'fraction_non_alphanumeric': 0.2008438818565401, 'fraction_numerical': 0.007594936708860759, 'mean_word_length': 2.4178674351585014, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1582627', 'n_tokens_mistral': 405, 'n_tokens_neox': 400, 'n_words': 74}