This commit is contained in:
Vanessa 2023-06-15 23:36:06 +08:00
parent b38863df8a
commit 11f7960fd8
2 changed files with 45 additions and 14 deletions

View file

@ -31,6 +31,7 @@ export const getIdZoomInByPath = () => {
id, isZoomIn
};
};
export const isSYProtocol = (url: string) => {
return /^siyuan:\/\/blocks\/\d{14}-\w{7}/.test(url);
};