Index: lib/ui.js |
=================================================================== |
--- a/lib/ui.js |
+++ b/lib/ui.js |
@@ -954,12 +954,12 @@ |
mainSubscriptionURL = null; |
// Trim spaces in title and URL |
- title = title.replace(/^\s+/, "").replace(/\s+$/, ""); |
- url = url.replace(/^\s+/, "").replace(/\s+$/, ""); |
+ title = title.trim(); |
+ url = url.trim(); |
if (mainSubscriptionURL) |
{ |
- mainSubscriptionTitle = mainSubscriptionTitle.replace(/^\s+/, "").replace(/\s+$/, ""); |
- mainSubscriptionURL = mainSubscriptionURL.replace(/^\s+/, "").replace(/\s+$/, ""); |
+ mainSubscriptionTitle = mainSubscriptionTitle.trim(); |
+ mainSubscriptionURL = mainSubscriptionURL.trim(); |
} |
// Verify that the URL is valid |