mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 23:37:59 +01:00
Fix command parsing on FF36. Closes issue #65.
--HG-- extra : rebase_source : 801de24c1af70280c1ac297a2db47fc37b82878c
This commit is contained in:
@@ -654,7 +654,7 @@ const Commands = Module("commands", {
|
||||
outer:
|
||||
while (i < str.length || complete) {
|
||||
var argStart = i;
|
||||
let re = /^\s*/gy;
|
||||
let re = /\s*/gy;
|
||||
re.lastIndex = i;
|
||||
i += re.exec(str)[0].length;
|
||||
|
||||
@@ -764,7 +764,7 @@ const Commands = Module("commands", {
|
||||
if (complete)
|
||||
args.completeArg = args.length;
|
||||
|
||||
let re = /^(?:\s*(?=\n)|\s*)([^]*)/gy;
|
||||
let re = /(?:\s*(?=\n)|\s*)([^]*)/gy;
|
||||
re.lastIndex = argStart || 0;
|
||||
sub = re.exec(str)[1];
|
||||
|
||||
|
||||
@@ -493,6 +493,11 @@ const Dactyl = Module("dactyl", {
|
||||
this.helpInitialized = true;
|
||||
}
|
||||
},
|
||||
stringifyXML: function (xml) {
|
||||
XML.prettyPrinting = false;
|
||||
XML.ignoreWhitespace = false;
|
||||
return UTF8(xml.toXMLString());
|
||||
},
|
||||
|
||||
exportHelp: function (path) {
|
||||
const FILE = io.File(path);
|
||||
|
||||
Reference in New Issue
Block a user