X-Git-Url: https://src.twobees.de/?p=tampermonkeyscripts.git;a=blobdiff_plain;f=AzureDevOpsCommentEnhancer.user.js;h=d0967d4b9b7805b0a53616a625615280613a06a9;hp=754343aebacf72f0d596c0c19a28c7b5bc2d150a;hb=5f563d108984970ea9e9c1a160d08d81d35d282d;hpb=00c5bd4ebd53f296f86b9582f7c905842d021373 diff --git a/AzureDevOpsCommentEnhancer.user.js b/AzureDevOpsCommentEnhancer.user.js index 754343a..d0967d4 100755 --- a/AzureDevOpsCommentEnhancer.user.js +++ b/AzureDevOpsCommentEnhancer.user.js @@ -10,7 +10,7 @@ // @description // ==/UserScript== -// 0.11: wait longer, to make sure all(?) data is loaded when working over slow connections +// 0.11: fix regexp for later changesets attached. // 0.10: #Bugnumber to links, highlight comments for customors in checkins // 0.09: update download/update URLs // 0.08: fix typos/formatting @@ -41,8 +41,8 @@ let el = items[i]; let html = el.innerHTML; if (html.startsWith("Associated")) { - html = html.replace(/(Associated with changeset )(\d*):/, - "$1$2:
"); + html = html.replace(/(Associated with changeset )(\d*)([:.])/, + "$1$2$3
"); html = html.replace(/#(\d+)/g, "#$1"); html = html.replace(/\n/gi, "
"); html = html.replace(/(@@CUST.*)/s, "
$1"); @@ -95,7 +95,7 @@ // keep watching for changes observer.observe(document, { subtree: true, childList: true, characterData: true }); - }, 600); + }, 300); }; const observer = new MutationObserver(function() {