From 52f452ab5bca9a9f130931ebe9fdb979f5ce4b10 Mon Sep 17 00:00:00 2001 From: Daniel Brunner <0xFEEDC0DE64@gmail.com> Date: Fri, 16 Mar 2018 21:34:17 +0100 Subject: [PATCH] Improved url matching with named releases --- request.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/request.js b/request.js index e216d33..9955eae 100644 --- a/request.js +++ b/request.js @@ -6,8 +6,8 @@ chrome.webRequest.onBeforeRequest.addListener(function(details) { /^https?:\/\/doc\.qt\.io\/archives\/qt-[0-9\.]+(.*)$/g, /^https?:\/\/developer\.qt\.nokia\.com\/doc\/qt-[0-9\.]+(.*)$/g, /^https?:\/\/qt\.nokia\.com\/doc(.*)$/g, - /^https?:\/\/doc\.qt\.nokia\.com\/(?:latest|stable|[0-9\.]+)(.*)$/g, - /^https?:\/\/doc\.trolltech\.com\/[0-9\.]+(.*)$/g + /^https?:\/\/doc\.qt\.nokia\.com\/(?:main\-snapshot|latest|stable|[0-9\.]+)(.*)$/g, + /^https?:\/\/doc\.trolltech\.com\/(?:main\-snapshot|latest|stable|[0-9\.]+)(.*)$/g ]) { let match = expression.exec(url); if(match !== null) {