|
|
@@ -258,8 +258,9 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
if (titleElement) {
|
|
|
title = titleElement.textContent.trim();
|
|
|
}
|
|
|
+ const matchTitle = this.baseURI.match(/([^/]*)\/?(\.html?.*)$/) || this.baseURI.match(/\/\/([^/]*)\/?$/);
|
|
|
return {
|
|
|
- title: title || (this.baseURI ? this.baseURI.match(/([^/]*)\/?(\.html?.*)$/)[1] : ""),
|
|
|
+ title: title || (this.baseURI && matchTitle ? matchTitle[1] : ""),
|
|
|
content: this.dom.serialize()
|
|
|
};
|
|
|
}
|