mirror of https://github.com/gorhill/uBlock.git
Leave out hash part when extracting patch file name
Related commit:
aeff955667
This commit is contained in:
parent
247972c0d3
commit
1cf634cce0
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
const patches = new Map();
|
const patches = new Map();
|
||||||
const encoder = new TextEncoder();
|
const encoder = new TextEncoder();
|
||||||
const reFileName = /[^\/]+$/;
|
const reFileName = /([^\/]+?)(?:#.+)?$/;
|
||||||
const EMPTYLINE = '';
|
const EMPTYLINE = '';
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
@ -44,7 +44,7 @@ const suffleArray = arr => {
|
||||||
|
|
||||||
const basename = url => {
|
const basename = url => {
|
||||||
const match = reFileName.exec(url);
|
const match = reFileName.exec(url);
|
||||||
return match && match[0] || '';
|
return match && match[1] || '';
|
||||||
};
|
};
|
||||||
|
|
||||||
const resolveURL = (path, url) => {
|
const resolveURL = (path, url) => {
|
||||||
|
|
Loading…
Reference in New Issue