mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 07:28:00 +01:00
Fix :saveas naming bug.
--HG-- extra : rebase_source : 5f85f68a25499827943f07a182de6af70eee4461
This commit is contained in:
@@ -161,7 +161,7 @@ var Buffer = Module("buffer", {
|
||||
|
||||
getDefaultNames: function getDefaultNames(node) {
|
||||
let url = node.href || node.src || node.documentURI;
|
||||
let currExt = url.replace(/.*(?:\.([a-z0-9]+))?$/, "$1").toLowerCase();
|
||||
let currExt = url.replace(/^.*?(?:\.([a-z0-9]+))?$/i, "$1").toLowerCase();
|
||||
|
||||
if (isinstance(node, [Document, HTMLImageElement])) {
|
||||
let type = node.contentType || node.QueryInterface(Ci.nsIImageLoadingContent)
|
||||
@@ -173,7 +173,7 @@ var Buffer = Module("buffer", {
|
||||
ext = "." + currExt;
|
||||
else
|
||||
ext = "";
|
||||
let re = ext ? RegExp("(\\." + currExt + ")?$") : /$/;
|
||||
let re = ext ? RegExp("(\\." + currExt + ")?$", "i") : /$/;
|
||||
|
||||
var names = [];
|
||||
if (node.title)
|
||||
|
||||
@@ -32,7 +32,8 @@ function checkPopup(event) {
|
||||
let elem = doc.getAnonymousElementByAttribute(binding, "anonid", "stillworks");
|
||||
if (elem && elem.nextSibling) {
|
||||
elem.nextSibling.disabled = true;
|
||||
elem.nextSibling.setAttribute("tooltiptext", "Developer has opted out of incompatibility reports");
|
||||
elem.nextSibling.setAttribute("tooltiptext", "Developer has opted out of incompatibility reports\n"+
|
||||
"Development versions are available with updated support");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user