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
1 changed files with 2 additions and 2 deletions

View File

@ -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) => {