No need to globally replace end colon

There will be only one
This commit is contained in:
Matt Pass
2012-12-18 08:49:07 +00:00
parent 8c5747798d
commit 80c73523e3

View File

@@ -908,7 +908,7 @@ var ICEcoder = {
for(i=0;i<top.ICEcoder.selectedFiles.length;i++) {
filesQS += top.ICEcoder.selectedFiles[i]+":";
}
filesQS = filesQS.replace(/\:$/g,"");
filesQS = filesQS.replace(/\:$/,"");
}
find = find.replace(/\'/g, '&#39;');
find != encodeURIComponent(find) ? find = 'ICEcoder:'+encodeURIComponent(find) : find;