mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-09 16:54:21 +01:00
This commit is contained in:
parent
64ae905921
commit
ff3cd4d4e9
21 changed files with 117 additions and 85 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import {hideMessage, showMessage} from "../dialog/message";
|
||||
import {showMessage} from "../dialog/message";
|
||||
import {Dialog} from "../dialog";
|
||||
import {focusByRange} from "../protyle/util/selection";
|
||||
import {hasClosestBlock} from "../protyle/util/hasClosest";
|
||||
|
|
@ -11,7 +11,6 @@ import {fetchPost} from "../util/fetch";
|
|||
import {escapeHtml} from "../util/escape";
|
||||
|
||||
export const validateName = (name: string) => {
|
||||
hideMessage();
|
||||
if (/\r\n|\r|\n|\u2028|\u2029|\t|\//.test(name)) {
|
||||
showMessage(window.siyuan.languages.fileNameRule);
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue