Skip to content

Commit

Permalink
Replace space to dash
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed May 12, 2021
1 parent e094af9 commit 635c426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ImJoyEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ export default {
const content = this.editor.getValue()
const regex = /<.*>\s*{\s*"name":\s*"(.*)"\s*,/gm;
const name = regex.exec(content)[1]
this.api.exportFile(content, (name||'myPlugin') + ".imjoy.html");
this.api.exportFile(content, (name||'myPlugin').replace(/\s+/g, '-') + ".imjoy.html");
}
}
};
Expand Down

0 comments on commit 635c426

Please sign in to comment.