fb75ea1a65
* Fully removes real-time collaboration * URL scheme rewrite
5 lines
188 B
TypeScript
5 lines
188 B
TypeScript
export function isValidPageName(name: string): boolean {
|
|
// Page can not be empty and not end with a file extension (e.g. "bla.md")
|
|
return name !== "" && !/\.[a-zA-Z]+$/.test(name);
|
|
}
|