diff --git a/editor/extensions/ext-server_opensave.js b/editor/extensions/ext-server_opensave.js index 9cd02664..b2c9c4db 100644 --- a/editor/extensions/ext-server_opensave.js +++ b/editor/extensions/ext-server_opensave.js @@ -21,7 +21,7 @@ svgEditor.addExtension("server_opensave", { var svg = "\n" + data; var title = svgCanvas.getDocumentTitle(); - var filename = title.replace(/[^a-z0-9\.\_\-]+/gi, '_'); + var filename = $.trim(title).replace(/[^a-z0-9\.\_\-]+/gi, '_'); var form = $('