 Issue 6438904399921152:
  Issue 1674 - Use String.trim() to strip leading and trailing whitespaces (Chrome/Opera/Safari)  (Closed)
    
  
    Issue 6438904399921152:
  Issue 1674 - Use String.trim() to strip leading and trailing whitespaces (Chrome/Opera/Safari)  (Closed) 
  | Index: include.postload.js | 
| =================================================================== | 
| --- a/include.postload.js | 
| +++ b/include.postload.js | 
| @@ -664,8 +664,8 @@ | 
| title = url; | 
| // Trim spaces in title and URL | 
| - title = title.replace(/^\s+/, "").replace(/\s+$/, ""); | 
| - url = url.replace(/^\s+/, "").replace(/\s+$/, ""); | 
| + title = title.trim(); | 
| + url = url.trim(); | 
| if (!/^(https?|ftp):/.test(url)) | 
| return; |