From 337acb5448b8b08eb29a781825c6e69b6259d72b Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Sun, 11 Oct 2020 20:18:09 +0200 Subject: [PATCH] mstodo query --- src/js/remoteServices.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/js/remoteServices.js b/src/js/remoteServices.js index f0ac7c1..978ac94 100644 --- a/src/js/remoteServices.js +++ b/src/js/remoteServices.js @@ -127,7 +127,11 @@ export default { host: "https://to-do.office.com", urlPatterns: [":host:/tasks/id/:id(*)"], description: (document) => - document.querySelector(".detailHeader")?.textContent?.replace(projectRegex, "").trim(), + document + .querySelector(".detailHeader") + ?.textContent?.replace(/^[^[]+\[/, "[") + .replace(projectRegex, "") + .trim(), projectId: projectIdentifierBySelector(".detailHeader"), allowHostOverride: false, },