Restrict valid page names

This commit is contained in:
Zef Hemel
2023-07-07 11:44:05 +02:00
parent 59ff0643b0
commit 04d6de18e6
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ export async function renamePage(cmdDef: any) {
if (!isValidPageName(newName)) {
return editor.flashNotification(
"Invalid page name: page names cannot end with a file extension",
"Invalid page name: page names cannot end with a file extension nor start with a '.'",
"error",
);
}