mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 08:42:28 +01:00
Add named groups (a la Python) to util.regexp.
This commit is contained in:
@@ -126,7 +126,7 @@ var Marks = Module("marks", {
|
||||
let items = array(util.range(0, sh.count));
|
||||
|
||||
let a = items.slice(0, sh.index).reverse();
|
||||
let b = items.slice(sh.index, sh.count);
|
||||
let b = items.slice(sh.index);
|
||||
a.length = b.length = Math.max(a.length, b.length);
|
||||
items = array(a).zip(b).flatten().compact();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user