aboutsummaryrefslogtreecommitdiffstats
path: root/commandBookmarklet.js
diff options
context:
space:
mode:
Diffstat (limited to 'commandBookmarklet.js')
-rw-r--r--commandBookmarklet.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/commandBookmarklet.js b/commandBookmarklet.js
index 0f71a44..6ecc2d0 100644
--- a/commandBookmarklet.js
+++ b/commandBookmarklet.js
@@ -21,7 +21,7 @@
var [url, title] = item;
var desc = title;
title = escape( title.replace(/ +/g,'').toLowerCase() );
- if (title.match(/[^a-zA-Z]+/)) {
+ if (/[^a-zA-Z]+/.test(title)) {
title = "bm"+title.replace(/[^a-zA-Z]+/g,'');
title = title.substr(0, title.length>50?50:title.length);
}