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

Unified Diff: chrome/content/ui/filters-subscriptionactions.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 | « no previous file | chrome/content/ui/subscriptionSelection.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/ui/filters-subscriptionactions.js
===================================================================
--- a/chrome/content/ui/filters-subscriptionactions.js
+++ b/chrome/content/ui/filters-subscriptionactions.js
@@ -444,7 +444,7 @@
if (save)
{
newTitle = subscriptionNode.getElementsByClassName("titleEditor")[0].value;
- newTitle = newTitle.replace(/^\s+/, "").replace(/\s+$/, "");
+ newTitle = newTitle.trim();
}
let subscription = Templater.getDataForNode(subscriptionNode).subscription
« no previous file with comments | « no previous file | chrome/content/ui/subscriptionSelection.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld