Commit 60cc7db2 authored by Irina's avatar Irina

v1.2

parent cde9de0b
......@@ -40,15 +40,15 @@ function setUrl(urlOption) {
function removeSpaces(string) {
'use strict';
while (string.charAt(string.length - 1) === ' ') {
string = string.slice(0, string.length - 1);
}
if (string.charAt(0) === ' ') {
var temp = string.split(' ');
string = temp[temp.length - 1];
}
if (string.charAt(string.length - 1) === ' ') {
string = string.slice(0, string.length - 1);
}
return string;
}
......
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