From ee2fd45f00e680450f3400a4d0a63bc6d80d950a Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 18 Nov 2020 12:14:23 -0500 Subject: [PATCH] Ensure we do not extract truncated URL for Homepage directive Related feedback: - https://github.com/gorhill/uBlock/commit/b12e0e05ea9d319ba3b6c2b97d9322c347230bd7#commitcomment-44309540 --- src/js/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/storage.js b/src/js/storage.js index 96c190454..56d529f7b 100644 --- a/src/js/storage.js +++ b/src/js/storage.js @@ -801,7 +801,7 @@ self.addEventListener('hiddenSettingsChanged', ( ) => { listEntry.title = this.orphanizeString(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] || ''; if ( supportURL !== '' && supportURL !== listEntry.supportURL ) { listEntry.supportURL = this.orphanizeString(supportURL);