mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 12:52:29 +02:00
ctrl-x/a doesn'
This commit is contained in:
1 parent
9a64fd935b
commit
2b3a93dcbd
1 file changed
+2
-5
@@ -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+)$/);
|
||||
|
||||
Reference in new issue
Block a user