From 5f563d108984970ea9e9c1a160d08d81d35d282d Mon Sep 17 00:00:00 2001 From: Tobias Sachs Date: Thu, 15 Oct 2020 09:35:25 +0200 Subject: [PATCH] fix regexp for later attached changesetst undo increased timeout, this simply was not the cause for missing links, the bad regexp was.. --- AzureDevOpsCommentEnhancer.user.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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() { -- 2.39.5