Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/content/ui/subscriptionSelection.js

Issue 5325266087837696: Issue 1675 - Use String.trim() to strip leading and trailing whitespaces (Firefox) (Closed)
Patch Set: Created Dec. 8, 2014, 5:24 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/content/ui/filters-subscriptionactions.js ('k') | lib/filterClasses.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/ui/subscriptionSelection.js
===================================================================
--- a/chrome/content/ui/subscriptionSelection.js
+++ b/chrome/content/ui/subscriptionSelection.js
@@ -239,7 +239,7 @@
{
if (!url)
return null;
- url = url.replace(/^\s+/, "").replace(/\s+$/, "");
+ url = url.trim();
// Is this a file path?
try {
@@ -266,7 +266,7 @@
return false;
}
- let title = E("title").value.replace(/^\s+/, "").replace(/\s+$/, "");
+ let title = E("title").value.trim();
if (!title)
title = url;
« no previous file with comments | « chrome/content/ui/filters-subscriptionactions.js ('k') | lib/filterClasses.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld