| 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; |