mirror of https://github.com/gorhill/uBlock.git
Ensure we do not extract truncated URL for Homepage directive
Related feedback:
- b12e0e05ea (commitcomment-44309540)
This commit is contained in:
parent
6b1a9e7aee
commit
ee2fd45f00
|
@ -801,7 +801,7 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
|
||||||
listEntry.title = this.orphanizeString(title);
|
listEntry.title = this.orphanizeString(title);
|
||||||
this.assets.registerAssetSource(assetKey, { title });
|
this.assets.registerAssetSource(assetKey, { title });
|
||||||
}
|
}
|
||||||
matches = head.match(/(?:^|\n)(?:!|# )[\t ]*Homepage[\t ]*:[\t ]*(https?:\/\/\S+)/i);
|
matches = head.match(/(?:^|\n)(?:!|# )[\t ]*Homepage[\t ]*:[\t ]*(https?:\/\/\S+)\s/i);
|
||||||
const supportURL = matches && matches[1] || '';
|
const supportURL = matches && matches[1] || '';
|
||||||
if ( supportURL !== '' && supportURL !== listEntry.supportURL ) {
|
if ( supportURL !== '' && supportURL !== listEntry.supportURL ) {
|
||||||
listEntry.supportURL = this.orphanizeString(supportURL);
|
listEntry.supportURL = this.orphanizeString(supportURL);
|
||||||
|
|
Loading…
Reference in New Issue