End the scraped URL before an open angle bracket, so that any
following markup is avoided.
---

G'day John, thanks for applying the other patches.

 modules/element.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/element.js b/modules/element.js
index 02c21a0..db7a82d 100644
--- a/modules/element.js
+++ b/modules/element.js
@@ -231,7 +231,7 @@ define_browser_object_class("scrape-url",
     "urls scraped from the source code of the document.",
     function (I, prompt) {
         var completions = I.buffer.document.documentElement.innerHTML
-            .match(/https?:[^\s>)"]*/g)
+            .match(/https?:[^\s<>)"]*/g)
             .filter(remove_duplicates_filter());
         var completer = all_word_completer($completions = completions);
         var result = yield I.buffer.window.minibuffer.read(
-- 
1.7.5.4

_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to