We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a869db4 commit 0a8139dCopy full SHA for 0a8139d
1 file changed
www/index.html
@@ -436,7 +436,11 @@ <h2>Target</h2>
436
437
return list.map(item => {
438
if ( ! rootRegExp && item.resourceType === 'root') {
439
- rootRegExp = new RegExp(`^${item.url}`, 'g')
+ // @TODO: Use more intelligent logic
440
+ // This works better than using the full URL
441
+ // but breaks when the path has a long prefix
442
+ const url = new URL(item.url)
443
+ rootRegExp = new RegExp(`^${url.protocol}//${url.host}/`, 'g')
444
}
445
446
if (item.size) {
0 commit comments