Bug 1315440
- Follow-up: Removed spaces before/after ellipsis. r=Paenglab DONTBUILD
This commit is contained in:
Родитель
88870dfbd9
Коммит
3e410f3eda
|
@ -34,7 +34,7 @@ function Startup()
|
|||
function(match, attr, nonDataPart) {
|
||||
count++;
|
||||
gDataURIs.set(count, match);
|
||||
return attr + nonDataPart + " … [" + count + "]";
|
||||
return attr + nonDataPart + "…[" + count + "]";
|
||||
});
|
||||
if (selection)
|
||||
gDialog.srcInput.value = selection;
|
||||
|
@ -52,7 +52,7 @@ function onAccept()
|
|||
return false;
|
||||
|
||||
// Add back the original data URIs we stashed away earlier.
|
||||
html = html.replace(/(src|href)="data:[^;]*;base64, … \[([0-9]+)\]/gi,
|
||||
html = html.replace(/(src|href)="data:[^;]*;base64,…\[([0-9]+)\]/gi,
|
||||
function(match, attr, num) {
|
||||
var index = parseInt(num);
|
||||
if (!gDataURIs.has(index))
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
// find the ellipsis we added. The user could have pasted a full new
|
||||
// data URI which we don't want to lose.
|
||||
if (/^data:/i.test(gMsgCompInputElement.value.trim()) &&
|
||||
gMsgCompInputElement.value.includes(" ...")) {
|
||||
gMsgCompInputElement.value.includes("...")) {
|
||||
gMsgCompInputElement.value = gMsgCompPrevInputValue;
|
||||
}
|
||||
}
|
||||
|
@ -121,7 +121,7 @@
|
|||
gMsgCompInputElement.value = gMsgCompInputElement
|
||||
.value.replace(/(data:[^;]*;base64,).*/i, function(match, nonDataPart) {
|
||||
gMsgCompInputElement.addEventListener("copy", onCopy, true);
|
||||
return nonDataPart + " ...";
|
||||
return nonDataPart + "...";
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -131,7 +131,7 @@
|
|||
// and we find the ellipsis we added. The user could have pasted a full
|
||||
// new data URI which we don't want to lose.
|
||||
if (/^data:/i.test(gMsgCompInputElement.value.trim()) &&
|
||||
gMsgCompInputElement.value.includes(" ...")) {
|
||||
gMsgCompInputElement.value.includes("...")) {
|
||||
event.clipboardData.setData("text/plain", gMsgCompPrevInputValue);
|
||||
event.preventDefault();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче