mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-16 20:42:30 +02:00
Skip leading white space when proto matching.
--HG-- extra : rebase_source : ad2bc00283827198b0cab54400a1c1b8d323a7a3
This commit is contained in:
1 parent
af64ba27db
commit
48fcb93bcd
1 file changed
+1
-1
@@ -2312,7 +2312,7 @@ var Buffer = Module("Buffer", {
|
||||
let url = dactyl.clipboardRead();
|
||||
dactyl.assert(url, _("error.clipboardEmpty"));
|
||||
|
||||
let proto = /^([-\w]+):/.exec(url);
|
||||
let proto = /^\s*([-\w]+):/.exec(url);
|
||||
if (proto && services.PROTOCOL + proto[1] in Cc && !RegExp(options["urlseparator"]).test(url))
|
||||
return url.replace(/\s+/g, "");
|
||||
return url;
|
||||
|
||||
Reference in new issue
Block a user