From 9cb91f8a48f9467e448f88984c20b3429e8a2510 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Mon, 13 Jul 2015 22:52:06 -0500 Subject: Spyblock updated to 2.6.9.0 from upstream changes --- .../spyblock@gnu.org/chrome/content/ui/subscriptionSelection.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'data/extensions/spyblock@gnu.org/chrome/content/ui/subscriptionSelection.js') diff --git a/data/extensions/spyblock@gnu.org/chrome/content/ui/subscriptionSelection.js b/data/extensions/spyblock@gnu.org/chrome/content/ui/subscriptionSelection.js index 3fdcc18..b9129ea 100644 --- a/data/extensions/spyblock@gnu.org/chrome/content/ui/subscriptionSelection.js +++ b/data/extensions/spyblock@gnu.org/chrome/content/ui/subscriptionSelection.js @@ -1,6 +1,6 @@ /* - * This file is part of Adblock Plus , - * Copyright (C) 2006-2014 Eyeo GmbH + * This file is part of Adblock Plus , + * Copyright (C) 2006-2015 Eyeo GmbH * * Adblock Plus is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as @@ -239,7 +239,7 @@ function validateURL(url) { if (!url) return null; - url = url.replace(/^\s+/, "").replace(/\s+$/, ""); + url = url.trim(); // Is this a file path? try { @@ -266,7 +266,7 @@ function addSubscription() return false; } - let title = E("title").value.replace(/^\s+/, "").replace(/\s+$/, ""); + let title = E("title").value.trim(); if (!title) title = url; -- cgit v1.2.3