修正语法

This commit is contained in:
joyqi 2013-11-10 16:37:15 +08:00
parent 5169a2a460
commit 98891aae44

View File

@ -4860,7 +4860,7 @@ else
if (isImage) {
var imagename = that.getString("imagename");
if (!!imagename) {
imagename = imagename.replace('_', '\\_');
imagename = imagename.replace(/_/g, '\\_');
}
chunk.selection = imagename || that.getString("imagedescription");
@ -4868,7 +4868,7 @@ else
else {
var linkname = that.getString("linkname");
if (!!linkname) {
linkname = linkname.replace('_', '\\_');
linkname = linkname.replace(/_/g, '\\_');
}
chunk.selection = linkname || that.getString("linkdescription");