From 2b3a93dcbd94b7fd859ecd6ff3a86dece276ed52 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Tue, 17 Jun 2008 01:57:23 +0000 Subject: [PATCH] ctrl-x/a doesn' --- content/vimperator.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/content/vimperator.js b/content/vimperator.js index 37107264..2836e20b 100644 --- a/content/vimperator.js +++ b/content/vimperator.js @@ -97,14 +97,11 @@ liberator.config = { //{{{ function incrementURL(count) { var url = liberator.buffer.URL; - var regex = /(.*?)(-?\d+)(\D*)$/; + var regex = /(.*?)(\d+)(\D*)$/; var matches = url.match(regex); if (!matches || !matches[2]) // no number to increment - { - liberator.beep(); - return; - } + return liberator.beep(); var newNum = parseInt(matches[2], 10) + count + ""; // "" to make sure its a string var nums = newNum.match(/^(-?)(\d+)$/);