mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 18:02:27 +01:00
ctrl-x/a doesn'
This commit is contained in:
@@ -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