diff options
author | drry | 2008-11-01 22:41:17 +0000 |
---|---|---|
committer | drry | 2008-11-01 22:41:17 +0000 |
commit | 520f9967791bd7b8ec4597aa560745856e39557e (patch) | |
tree | 77429c31f8fad37d4936bfa4d9637d0422de705d /commandBookmarklet.js | |
parent | 9fda761a19d85de1b79a109f91cc7080f32d207c (diff) | |
download | vimperator-plugins-520f9967791bd7b8ec4597aa560745856e39557e.tar.bz2 |
* fixed a regex.
* et cetera.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@22556 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'commandBookmarklet.js')
-rw-r--r-- | commandBookmarklet.js | 2 |
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); } |