mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +01:00
This commit is contained in:
parent
848723c484
commit
b45f5303fe
2 changed files with 6 additions and 1 deletions
|
|
@ -22,6 +22,10 @@ export const replaceFileName = (name: string) => {
|
|||
return name.replace(/\r\n|\r|\n|\u2028|\u2029|\t|\//g, "");
|
||||
};
|
||||
|
||||
export const replaceLocalPath = (name: string) => {
|
||||
return name.replace(/\\\\|\/|:|\*|\?|\\|'|<|>|\|/g, "");
|
||||
};
|
||||
|
||||
export const rename = (options: {
|
||||
path: string
|
||||
notebookId: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue