Commit 3acafb15 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Mass Remove: Remove Trailing Whitespace in pasted URL

parent e6c09631
......@@ -11,7 +11,9 @@
var i,
promise_list = [];
for (i = 0; i < url_list_length; i += 1) {
promise_list.push(gadget.crib_sw_remove(url_list[i]));
promise_list.push(
gadget.crib_sw_remove(url_list[i].replace(/[ \t]+$/g, ''))
);
}
return RSVP.all(promise_list);
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment