|
|
@@ -1566,13 +1566,17 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
lastSegment = lastSegmentMatch && lastSegmentMatch[0];
|
|
|
}
|
|
|
if (!lastSegment) {
|
|
|
- lastSegmentMatch = lastSegment.match(/(.*)<\.[^.]+$/);
|
|
|
+ lastSegmentMatch = lastSegment.match(/(.*)\.[^.]+$/);
|
|
|
lastSegment = lastSegmentMatch && lastSegmentMatch[0];
|
|
|
}
|
|
|
if (!lastSegment) {
|
|
|
lastSegment = url.hostname.replace(/\/+/g, "_").replace(/\/$/, "");
|
|
|
}
|
|
|
- lastSegment.replace(/\/$/, "").replace(/^\//, "");
|
|
|
+ lastSegmentMatch = lastSegment.match(/(.*)\.[^.]+$/);
|
|
|
+ if (lastSegmentMatch && lastSegmentMatch[1]) {
|
|
|
+ lastSegment = lastSegmentMatch[1];
|
|
|
+ }
|
|
|
+ lastSegment = lastSegment.replace(/\/$/, "").replace(/^\//, "");
|
|
|
return lastSegment;
|
|
|
}
|
|
|
|