1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

Leave out hash part when extracting patch file name

Related commit:
aeff955667
This commit is contained in:
Raymond Hill 2023-11-05 08:03:43 -05:00
parent 247972c0d3
commit 1cf634cce0
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -27,7 +27,7 @@
const patches = new Map();
const encoder = new TextEncoder();
const reFileName = /[^\/]+$/;
const reFileName = /([^\/]+?)(?:#.+)?$/;
const EMPTYLINE = '';
/******************************************************************************/
@ -44,7 +44,7 @@ const suffleArray = arr => {
const basename = url => {
const match = reFileName.exec(url);
return match && match[0] || '';
return match && match[1] || '';
};
const resolveURL = (path, url) => {